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 cakfe and the appropriate PHP function, by completing the following code so that it prints: "Match found!"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
