Prefix in PHP

by Hiroshi on June 19, 2008

in Concatenation, PHP Basics, Prefix

Here is PHP prefix example.

$name= "Javed";
echo "{$name}Khaleel";
$name= "Javed";
echo "$name is"  .  " doing work";

Related Posts

  • Simple PHP Script – Lets Start PHP – Echo Hello PHP If you want to learn PHP you have come to the right place. I will not only teach you how […]
  • PHP Echo in PHP PHP function echo is a means of outputting text to the web browser. Here is how we can […]
  • PHP Logical Operators Logical operators are true or false. NOT if(!1) Value is not one AND 4 && 4 […]
  • PHP Functions A function is just a name we give to a block of code that can be executed whenever we […]
  • PHP ForEach Loop PHP provides an easy way to use every element of an array with the For each statement. […]
  • PHP Do While Loop A "do while" loop is a slightly modified version of the while loop. A do-while loop […]
  • PHP While Loop The while keyword takes a condition in parentheses, and the code block that follows is […]
  • PHP Arrays An array is a data structure that stores one or more values in a single value. In more […]
  • PHP Increment Operator Some of the most frequently used code in PHP or any programming language is the code […]
  • PHP Switch Statement Examples With the use of the switch statement you can check for many conditions at once, and the […]

Previous post:

Next post: