Question: Write a simple PHP code to Find whether a pattern ( ' caf ' ) exists in a string ( He was eating cake

Write a simple PHP code to Find whether a pattern ('caf') exists in a string ("He was eating cake in the cafe.") or not using the regular expression (ca[kf]e) and the appropriate PHP function, by completing the following code so that it prints: "Match found!"
Write a simple PHP code to Find whether a pattern

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!