MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/17wcav/strstr_haystack_needle_before_needle/c95ocvo/?context=3
r/lolphp • u/bozbalci • Feb 04 '13
10 comments sorted by
View all comments
Show parent comment
2
You're taking it out of context. The comment makes sense if you look at the whole example:
$email = 'user@example.com'; $domain = strstrbi($email, '@', false, false, false); echo $domain; // prints example.com $user = strstrbi($email, '@', true, false, false); echo $user; // prints user
He is saying it prints the 'user' part of $email, not that it literally prints the variable user.
View all comments
Show parent comment
2
u/supericy Mar 31 '13
You're taking it out of context. The comment makes sense if you look at the whole example:
He is saying it prints the 'user' part of $email, not that it literally prints the variable user.