Mega Code Archive

 
Categories / Php / Strings
 

Adding s to the end of the variable name

<?php             $food = "grapefruit";             print "These ${food}s aren't ripe yet.";             print "These {$food}s aren't ripe yet.";     ?>