str = 'foo'.replace('#', '').substr(1).as_array(); int = 5.something();
$str = 'foo'; $str = str_replace('#', '', $str); $str = substr($str, 1); $str = (array) $str; $int = 5; $int = something($int);
Class definitions as well:
Foo { // constants BAR = 'fubar', BAR2 = 'foo'; // properties protected _bar, _fubar; // public properties / methods public bar() { return ._bar; }, fubar() { return ._bar + ._fubar; } }
Class definitions as well: