12 Essential PHP Interview Questions

 Our Toptal Engineering Blog has published a great post called “12 Essential PHP Interview Questions,” and I think it would be of interest to all of you.
See the preview of article given below :
Consider the following code:
$str1 = ‘yabadabadoo’;
$str2 = ‘yaba’;
if (strpos($str1,$str2)) {
echo “\”” . $str1 . “\” contains \”” . $str2 . “\””;
} else {
echo “\”” . $str1 . “\” does not contain \”” . $str2 . “\””;
The output will be:
“yabadabadoo” does not contain “yaba”
Why? How can this code be fixed to work correctly?
To see more goto : www.toptal.com/php/interview-questions

1 thought on “12 Essential PHP Interview Questions”

  1. That is a really good tip particularly to thode new to the
    blogosphere. Brief but very accurate information…
    Thanks for sharing this one. A must read post!|If you don’t mind, I would like to share this blog with my followers on twitter?

Leave a Reply

Your email address will not be published. Required fields are marked *

thirteen − two =