<?php

$firstname = "First Name";
$middlename = "Middle Name";
$lastname = "Last Name";

Function mix($firstname, $middlename, $lastname)
   {
   $name = $firstname  ." ". $middlename ." ". $lastname;		
   return $name; 	
   }
   
mix("John", "Wayne", "King");   

?>

I would like print the whole name on screen, yet nothing appears instead.

What should I do?

Thanks.

try to print what that function returns :

echo mix("John", "Wayne", "King");

else put

echo

in that function its self.
Please tell me clearly , if i understood your query wrongly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.