103

So that's how my girlfriend wished me a happy birthday.. she's a chemist

<?php
$happy="Happy";
$bday="Birthday";
$to="To";
$you="You";
$dear="Dear";
$boyfriend="Joseph";

for($i=0;$i<4;$i++){
if($i!=2)
echo $happy." ".$bday." ".$to." ".$you."<br>";
else
echo $happy." ".$bday." ".$dear." ".$boyfriend."<br>";
}

?>

Comments
  • 5
    She is a keeper. I think every dev would wish for something like this!
  • 59
    That code could be optimized...
  • 10
    @micheletto Nothing like sarcasm to ruin a bit of romance...
  • 4
    @micheletto my first thought as well tbh... I'm not very romantic :3
  • 14
    It may be too late to save her from PHP...
  • 3
    @josephnasr Was kidding ! Marry her ! She is a chemist, that means she cook well ;) (and she's promising at programming)
  • 17
    Boyfriend is not a constant πŸ€” hmm wonder how many 'boyfriends' got this..
  • 3
    @RStrydom was thinking that. Nice reuse of this code later as requirements change ;-)
  • 3
  • 0
    @Youpala hay , here we like to hear your opinion , especially if it's related to the OP's topic, don't be shy about saying what you really think
  • 2
    Wife that up
  • 0
    Now all you need is a compiler to remove the redundant parts of that code
  • 1
    @micheletto the next Heisenberg πŸ˜€
  • 1
    Where do people find this kind of girlfriends? Or any girlfriend actually 😐
  • 1
    Why did she make a variable for every word, though?

    Any case, marry her. This instant. Idc how, just do it.
  • 0
    I wish my gf would do the same :(
  • 0
    Just let your friend help her :P@SHA-256
  • 0
    @Youpala lol I barely have Dev friends(not coding for a living)
Add Comment