Run »
"; echo substr("Hello world",1,8)."
"; echo substr("Hello world",0,5)."
"; echo substr("Hello world",6,6)."
"; echo "
"; // Negative numbers: echo substr("Hello world",0,-1)."
"; echo substr("Hello world",-10,-2)."
"; echo substr("Hello world",0,-6)."
"; ?>
Hello worl
ello wor
Hello
world
Hello worl
ello wor
Hello