PHP - Slicing Strings
Slicing You can return a range of characters by using the substr() function. Specify the start index and the number of characters you want to return. ExampleGet your own PHP Server Start the slice at index 6 and end the slice 5 positions later: $x = "Hello World!"; echo substr($x, 6, 5); Try it Yourself » Note The first character has index 0. Slice to the...
Like
1
1 Commenti 0 condivisioni 3K Views 0 Anteprima
Sponsorizzato