Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: