<?php
namespace Utils\Left {
function whichHand() {
echo "I'm using my left hand!";
}
}
namespace Utils\Right {
function whichHand() {
echo "I'm using my right hand!";
}
}
namespace {
Utils\Left\whichHand();
Utils\Right\whichHand();
use function Utils\Left\whichHand as leftHand, Utils\Right\whichHand as rightHand;
leftHand();
rightHand();
}
I'm using my left hand!I'm using my right hand!I'm using my left hand!I'm using my right hand!
Output for 5.5.0 - 5.5.38
Parse error: syntax error, unexpected 'function' (T_FUNCTION), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) in /in/cYH4r on line 19
Process exited with code 255.