PHP Tutorial 21 - Find If String Contains a String (PHP For Beginners)

preview_player
Показать описание
The strpos(String Position) function will allow you to check if one string contains another string and will also determine the first occurrence of that string. This function has been very useful to me when parsing web pages and should prove useful for you too.

For more information, check out the website:

Рекомендации по теме
Комментарии
Автор

glad even though you post videos so frequently, you apologize because you post every few days, even though people with millions of subs post monthly :)
great vid as usual

TheDastabah
Автор

Awesome!! Your teaching way is the Best!

HimanshJainYTube
Автор

Thanks for posting all your vids man. Your helping me so much.

kirbyking
Автор

Thanks Chris for another easy to follow and understand tutorial and it's practical use example.

JamesAllenIII
Автор

This is very Usefull tutorial . THANK YOU BRAVO!

Poom
Автор

Sorry guys only one video tonight I'm going to bed now. I already have 5 more recorded so I'll upload them tomorrow!

TeachMeComputer
Автор

First I Like the video, than watching :)

igormad
Автор

thank you very much your doing this very well

turanhayati
Автор

thanks for the great job, once again ;)

DanielRannu
Автор

Thank you, bro for the explanation..:-)

aneesqureishi
Автор

hah! betrapt! 6:50 ".com achter it" XDDDD

simpsonsvsstarwars
Автор

@MrPaper73 I use Camtasia to record :)

TeachMeComputer
Автор

Hi
How do i code a function that processes colon separated strings using explode function?

lebogangsekaleli
Автор

sir I just want to ask how to locate all the locations of the strings? like the letter " i " in your example. I would deeply appreciate your answer sir, Thank you for sharing this video it helps me a lot. ill be hoping for your reply sir God bless

ianjayduyao
Автор

In the if statement...i changed the boolean value to TRUE n made changes accordingly...lik if the result of $search is true thn echo string found else not found...so whichever value i gave..it gave me constant output as not found

pramodmr
Автор

what if there were more than 2 strings in the sentence. how to display both position of the string? ty in advance

tyaaaaanok
Автор

how can i code when i want to search multiple letters ?

iriszuza
Автор

what if there are two needles? does it only report the first one it finds?

vinayn
Автор

Well, in Python it only reports the first one, I think it's the same with PHP :D

vzwGrey
Автор

I was trying it using TRUE but the else condition gets executed every time. Can you help?

surajmgcn