This is an experiment in meta-programming PHP to give it a saner API.
Sweet.
s() turns all the standard string functions into methods with identical behavior:
s($haystack)->pos($needle)
OK. Cool. Sounds good.
->preg_replace(), ->in_array()
Yep. Awesome.
The s() function also implements JavaScript's string API:
->charAt(), ->indexOf(), ->lastIndexOf()
...
......
.........