print ( One-String ); |
. = (pure) string concatenation |
|
Example:
<?php $a = 1; $x = $a + 1; # Add print("x = " . $x . "\n"); $x = $a . 1; # String concatenate ! print("x = " . $x . "\n"); $x = 1 . 1; # String concatenate ! print("x = " . $x . "\n"); ?> |
Output:
x = 2 x = 11 x = 11 |
Example:
$x = 4; printf("x = %d\n", $x); |
If you don't know C, just use print( ) and use . (concatenate) to print longer strings.