Login Register






If PHP was british filter_list
Author
Message
If PHP was british #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();

Reply

RE: If PHP was british #2
This was really funny... Smile The last one really got me... Nouveau Empire... Biggrin It's hilarious cause they haven't been an empire since the middle ages... They're a kingdom...

Reply

RE: If PHP was british #3
(07-02-2015, 04:46 PM)Black Veil Brides Wrote: 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();


empire haha

Reply

RE: If PHP was british #4
I have wondered about if programming was in another language as well.

I mean like, the user input could be in their language, but can the actual programming language be in another language?

Reply