PHP Basic- Part 5 and PHP String
Hello Guys,
Shaifullah Shaon (Black_EyE) was here.
Take My Respected Salam.
Assalamu WAlaikum.
Welcome to PHP Basic- Part 5 and PHP String.
PHP 5 Strings
A string is a sequence of characters, like "Hello world!".
PHP String Functions
In this chapter we will look at some commonly used functions to manipulate strings.
Get The Length of a String
The PHP strlen() function returns the length of a string.
The example below returns the length of the string "Hello world!":
The output of the code above will be: 12.
Count The Number of Words in a String
The PHP str_word_count() function counts the number of words in a string:
The output of the code above will be: 2.
Example
Reverse a String
The PHP strrev() function reverses a string:
The output of the code above will be: !dlrow olleH.
Example
Search For a Specific Text Within a String
The PHP strpos() function searches for a specific text within a string.
If a match is found, the function returns the character position of the first match. If no match is found, it will return FALSE.
The output of the code above will be: 6.
Tip: The first character position in a string is 0 (not 1).
The example below searches for the text "world" in the string "Hello world!":
Replace Text Within a String
The PHP str_replace() function replaces some characters with some other characters in a string.
The output of the code above will be: Hello Dolly!
The example below replaces the text "world" with "Dolly":
Complete PHP String Reference
For a complete reference of all string functions, go to our complete PHP String Reference.
The PHP string reference contains description and example of use, for each function!
PHP 5 String Functions under below:
The PHP string functions are part of the PHP core. No installation is required to use these functions.
Today No More Buddy.
Hope you like it.
Plese subscribe my Channel if you like it and
Also if you want get update more about this.
Warm Regards,
Shaifullah Shaon
Again Salam.
Allah Hafez
It's an Online It Section
Please Subscribe us.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «PHP Basic- Part 5 and PHP String», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.