If PHP was british 07-02-2015, 04:46 PM
#1
From: https://www.addedbytes.com/blog/if-php-were-british/
If the programming language, PHP, was British...
$variable_name
would become
£variable_name<?php echo 'Hello World!'; ?>
would become
<?php announce 'Good morrow, fellow subjects of the Crown.'; ?>
Abbreviations
str_replace() is_int() var_dump() preg_match() json_encode() mysql_connect()
would change to
string_replace() is_integer() variable_dump() perl_regular_expression_match() javascript_object_notation_encode() my_structured_query_language_connect()
Eloquence
if ($condition) { // Code here } else { // Code here }
would change to
perchance (£condition) { // Code here } otherwise { // Code here }switch ($variable) { case $option1: //Code here break; case $option2: //Code here break; default: //Code here break; }
would change to
what_about (£variable) { perhaps £possibility: //Code here splendid; perhaps £other_possibility: //Code here splendid; on_the_off_chance: //Code here splendid; }
Spelling
imagecolorallocate() serialize() newt_centered_window() connection_status()
would change to
imagecolourallocate() serialise() newt_centred_window() connexion_status()
Manners
try { // Code here } catch (Exception $e) { // Handle exception die('Message'); }
would change to
would_you_mind { // Code here } actually_i_do_mind (Exception £e) { // Politely move on cheerio('Message'); }
Class
class Republic { public $a; private $b; protected $c; } $example = new Republic();
would change to
upper_class Empire { state £a; private £b; hereditary £c; } £example = nouveau Empire();
If the programming language, PHP, was British...
$variable_name
would become
£variable_name<?php echo 'Hello World!'; ?>
would become
<?php announce 'Good morrow, fellow subjects of the Crown.'; ?>
Abbreviations
str_replace() is_int() var_dump() preg_match() json_encode() mysql_connect()
would change to
string_replace() is_integer() variable_dump() perl_regular_expression_match() javascript_object_notation_encode() my_structured_query_language_connect()
Eloquence
if ($condition) { // Code here } else { // Code here }
would change to
perchance (£condition) { // Code here } otherwise { // Code here }switch ($variable) { case $option1: //Code here break; case $option2: //Code here break; default: //Code here break; }
would change to
what_about (£variable) { perhaps £possibility: //Code here splendid; perhaps £other_possibility: //Code here splendid; on_the_off_chance: //Code here splendid; }
Spelling
imagecolorallocate() serialize() newt_centered_window() connection_status()
would change to
imagecolourallocate() serialise() newt_centred_window() connexion_status()
Manners
try { // Code here } catch (Exception $e) { // Handle exception die('Message'); }
would change to
would_you_mind { // Code here } actually_i_do_mind (Exception £e) { // Politely move on cheerio('Message'); }
Class
class Republic { public $a; private $b; protected $c; } $example = new Republic();
would change to
upper_class Empire { state £a; private £b; hereditary £c; } £example = nouveau Empire();

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
The last one really got me... Nouveau Empire...
It's hilarious cause they haven't been an empire since the middle ages... They're a kingdom...