Skip to content

Instantly share code, notes, and snippets.

@javorszky
Created June 10, 2013 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javorszky/5749707 to your computer and use it in GitHub Desktop.
Save javorszky/5749707 to your computer and use it in GitHub Desktop.
Why I hate PHP part n
<?php
$var[] = "Email";
$var[] = "Notmail";
foreach($var as $v) {
if(strpos($v, "Email")){
echo "Yes, this is email";
} else {
echo "Not email";
}
}
// what will be the output?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment