Y
Hacker News
new
|
ask
|
show
|
jobs
by
BerislavLopac
5736 days ago
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?