Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
BerislavLopac
on Sept 29, 2010
|
parent
|
context
|
favorite
| on:
PHP needs to die. What will replace it?
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:
$string = preg_replace("/[^A-Za-z]+/","_", trim(upper($string)));
Or am I missing your point?