php - taking out only arithmatic operater in variable -
value -1 want take out - sign in variable how can this
if want store "-" (minus) sign in separate variable, need use substr()
function.
<?php echo substr('-1', 0, 1); // result in "-" ?>
Comments
Post a Comment