Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dwightgunning/1391c2b2931f199c4f7429e00472b3fa to your computer and use it in GitHub Desktop.
Save dwightgunning/1391c2b2931f199c4f7429e00472b3fa to your computer and use it in GitHub Desktop.
Stream - PHP samples
// Q1
<?php
class A {
public static function who() {
echo __CLASS__;
}
public static function test() {
self::who();
}
}
class B extends A {
public static function who() {
echo __CLASS__;
}
}
B::test();
?>
// Q2
var_dump(42 == 042);
var_dump(‘042’ == 42);
var_dump(‘042’ === 42);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment