Code
© potherca

Last code:
2017-07-04 14:34:23

Page creation date:
2013-05-09 16:51:43
sort:  date
Cheaper solution to find out if a class is abstract, instead of using ReflectionObject PHP Success 80 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:http://www.root-me.org/en/Challenges/Programming/Go-back-to-college-147 PHP Success 1 year ago
PHP Success 1 year ago
Using emoji characters as PHP functions/variables. PHP Success 1 year ago
Using UTF8 characters as PHP functions/variables. PHP Success 1 year ago
Casting NULL to an array in PHP PHP Success 1 year ago
From String to char in C. C Compilation error 2 years ago
Yet another approach of making code more readable. Source: https://medium.com/@dylanbr/writing-highly-readable-code-94da94d5d636 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 http://3v4l.org/mAPH4. Making the called method static won't work, see http://ideone.com/expLQq, the only viable solution seems to be using traits to clear this mess up: http://ideone.com/QABR3b This would require PHP 5.4 or higher to be used, which you should be doing anyway... PHP Success 2 years ago
PHP Success 2 years ago
PHP Success 2 years ago
The striking similarity between using `strpos` or `strpbrk` in PHP. PHP Success 2 years ago
Object of class stdClass could not be converted to string. PHP Runtime error 3 years ago
json_decode-ing NULL in PHP PHP Success 3 years ago
A better way than using the 'Array' typehint in PHP PHP Runtime error 2 years ago