© potherca

Last code:
2017-12-19 16:25:30

Page creation date:
2013-05-09 16:51:43
sort:  date
Proof that a PHP class can not have both a static and non-static method with the same name. PHP Success 95 days ago
Comparison of Callable and Closure type hint in PHP PHP Success 130 days ago
Example demonstrating a ClosedGeneratorException being caught outside of a Generator in PHP. PHP Success 135 days ago
Example of catching a ClosedGeneratorException inside a Generator in PHP PHP Success 135 days ago
PHP Example of using `array_walk()` instead of `foreach`. PHP Success 147 days ago
Example of `array_walk()` and `foreach` using `list()` PHP Success 147 days ago
Cheaper solution to find out if a class is abstract, instead of using ReflectionObject PHP Success 263 days ago
Getting a sub-string of an empty string. PHP Success 1 year ago
Circular class inheritance in PHP PHP Runtime error 1 year ago
The bot replies with a message in private with a string like this: <number1>/<number2> - You must calculate the square root of the number n°1 and multiply the result by the number n°2. - Then you need to round to two decimals. @source: PHP Success 2 years ago
PHP Success 2 years ago
Using emoji characters as PHP functions/variables. PHP Success 2 years ago
Using UTF8 characters as PHP functions/variables. PHP Success 2 years ago
Casting NULL to an array in PHP PHP Success 2 years ago
From String to char in C. C Compilation error 2 years ago
Yet another approach of making code more readable. Source: PHP Runtime error 2 years ago
Example suing strlen in C C Success 2 years ago
Using a class constant from an object. PHP Success 2 years ago
Concat the value of a PHP class constant PHP Success 2 years ago
Proof that PHP is not multibyte safe by default PHP Success 2 years ago
Proof that a PHP __toString method may not return an integer PHP Runtime error 2 years ago
PHP version_compare example PHP Success 2 years ago
PHP Fatal error: Using $this when not in object context. PHP Runtime error 2 years ago
Statically calling a non-static method from another class, using a trait. PHP Success 2 years ago
Statically calling a non-static method from another class. Abusing a language flaw that was only valid in PHP versions 5.0.0 to 5.1.2, see Making the called method static won't work, see, the only viable solution seems to be using traits to clear this mess up: This would require PHP 5.4 or higher to be used, which you should be doing anyway... PHP Success 2 years ago