Tag Archives: Variable

PHP Syntax Regulary Expressed

This is not the full PHP Syntax as Regex (which would not make much sense, use the tokenizer instead), but a collection of regular expressions for various elements of the PHP syntax I ran over lately.

Posted in PHP Development, Pressed | Tagged , , , , , , , , , , , , | 1 Comment

PHP: Casting vs. intval()

Doing a cast like (int) $var instead of the intval($var) function is about 300% to 650% faster. I did some tests out of curiousity in #13317 and those are the results:

Posted in Hacking The Core, Pressed, The Know Your Language Department | Tagged , , , , , , , , | 19 Comments

References to the Max

It’s somehow hard to understand. PHP Variables and how they do References to the according data. This Blog post is a collection of articles related to the topic and a short review of those I found valuable. Maybe there are … Continue reading

Posted in Hacking The Core, Hakre's Tips | Tagged , , , , , , , , , , , , , , , , , , , , , , , | 2 Comments