Sinisterly
If PHP was british - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: PHP (https://sinister.li/Forum-PHP)
+--- Thread: If PHP was british (/Thread-If-PHP-was-british--72090)



If PHP was british - Black Veil Brides - 07-02-2015

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();


RE: If PHP was british - alakazam - 07-10-2015

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...


RE: If PHP was british - bearnite - 07-14-2015

(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


RE: If PHP was british - Genghis Khan - 08-06-2015

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?