Is there some innovative way to make the "print" shorter without too much confusion? And which of the "print" do you like most?
define('_','_');
function _j($a, $b) {
return $a._.$b;
}
// Output 0_0
print (0)._.(0);
print _j(0,0);
Update
What I want to do is to have slice syntax that are in Python/Ruby into PHP eg.
a[1:3]
a[1,3]
a[1..3]
to make it into PHP you need to quote like this $a["1:3"]
($a is a class with ArrayAccess interface) so I was thinking if there is some otherways, $a[(0)._.(0)]
This is too long.