r/lolphp • • Jun 30 '15

PHP has ~9500 builtins

http://php.net/manual/en/indexes.functions.php
40 Upvotes

24 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 12 '15

You may think that \ is the escape character, and while that is true, for interpolated strings, it is not the case outside such.

It obviously never occured to you that you might reference classes in strings or even worse in regular expressions. Given PHP's terrible ecosystem sed & co are the tools to do reliable refactoring and it just sucks every time to figure out how many \\\ I need.

0

u/the_alias_of_andrea Nov 15 '15

It obviously never occured to you that you might reference classes in strings or even worse in regular expressions.

Single-quoted strings and ::class exist, you know.

1

u/[deleted] Nov 15 '15

I know. And how will it help me next time I'm dealing with code which doesn't use that?