Tuesday, February 20, 2018

php - Determining if string ends with another string

How do one determine,if the strings appears at the end of the other string. If they do then print true to standard out and false if they don’t. Would strpos will help?



    Sample Input

S1: “staff”
S2: “FF”


how would i make a function to run this,




  function matching_ends($s1,$s2){

}

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...