413,920 views
28 votes
28 votes
????????????????????????????????

????????????????????????????????-example-1
User Rose Nettoyeur
by
3.0k points

1 Answer

16 votes
16 votes

Answer:

(c) 4

Step-by-step explanation:

The function strpos() is a function in php that returns the position of the first occurrence of a particular substring in a string. Positions are counted from 0. The function receives two arguments. The first argument is the string from which the occurrence is to be checked. The second argument is the substring to be checked.

In this case, the string is "Get Well Soon!" while the substring is "Well"

Starting from 0, the substring "Well" can be found to begin at position 4 of the string "Get Well Soon!".

Therefore, the function strpos("Get Well Soon!", "Well") will return 4.

Then, with the echo statement, which is used for printing, value 4 will be printed as output of the code.

User Luo Jiong Hui
by
2.2k points