(I was going to call this post “How well do you understand context?” but I think this title is more accurate).
I just saw someone recommending this code:
1 |
$reversed = reverse(split //, $string); |
Looks sensible enough, doesn’t it? But it isn’t. What’s the hidden inefficiency?
Leave a Reply