I am working to optimize my PHP code and found out that you can speed up echoing in these ways - exactly, you can replace echo "The name of the user is $name" . "."; with:
- echo 'The name of the user is '.$name.'.';
- echo "The name of the user is", $name, ".";
- echo sprintf("The name of the user is %s", $name);
Which one is the fastest? I'd like not only to see benchmarks, but also some technical explaination, if possible.
 
     
     
    