Hacker News new | ask | show | jobs
by seldo 5738 days ago
Precisely what I meant, thanks for clarifying.
1 comments

But this is not method chaining, that's simple function nesting, and can easily be done as:

$string = preg_replace("/[^A-Za-z]+/","_", trim(upper($string)));

Or am I missing your point?