1
|
$variable_name |
1
|
£variable_name |
1
2
3
|
<?php echo 'Hello World!' ; ?> |
1
2
3
|
<?php announce 'Good morrow, fellow subjects of the Crown.' ; ?> |
1
2
3
4
5
6
|
str_replace () is_int () var_dump() preg_match() json_encode() mysql_connect() |
1
2
3
4
5
6
|
string_replace() is_integer () variable_dump() perl_regular_expression_match() javascript_object_notation_encode() my_structured_query_language_connect() |
1
2
3
4
5
|
if ( $condition ) { // Code here } else { // Code here } |
1
2
3
4
5
|
perchance (£condition) { // Code here } otherwise { // Code here } |
1
2
3
4
5
6
7
8
9
10
11
|
switch ( $variable ) { case $option1 : //Code here break ; case $option2 : //Code here break ; default : //Code here break ; } |
1
2
3
4
5
6
7
8
9
10
11
|
what_about (£variable) { perhaps £possibility: //Code here splendid; perhaps £other_possibility: //Code here splendid; on_the_off_chance: //Code here splendid; } |
1
2
3
4
|
imagecolorallocate() serialize() newt_centered_window() connection_status() |
1
2
3
4
|
imagecolourallocate() serialise() newt_centred_window() connexion_status() |
1
2
3
4
5
6
|
try { // Code here } catch (Exception $e ) { // Handle exception die ( 'Message' ); } |
1
2
3
4
5
6
|
would_you_mind { // Code here } actually_i_do_mind (Exception £e) { // Politely move on cheerio( 'Message' ); } |
1
2
3
4
5
6
|
class Republic { public $a ; private $b ; protected $c ; } $example = new Republic; |
1
2
3
4
5
6
|
upper_class Empire { state £a; private £b; hereditary £c; } £example = nouveau Empire; |