0 Комментарии
0 Поделились
9Кб Просмотры
0 предпросмотр
Поиск
Знакомьтесь и заводите новых друзей
-
Войдите, чтобы отмечать, делиться и комментировать!
-
PHP - Modify StringsPHP has a set of built-in functions that you can use to modify strings. Upper Case ExampleGet your own PHP Server The strtoupper() function returns the string in upper case: $x = "Hello World!"; echo strtoupper($x); Try it Yourself » Lower Case Example The strtolower() function returns the string in lower case: $x = "Hello World!"; echo...0 Комментарии 0 Поделились 9Кб Просмотры 0 предпросмотр
-
PHP - Slicing StringsSlicing 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...