PHPでscanLeft,scanRight