Explian the difference between preg_Match and preg_replace?

luciomontague9
Written by luciomontague9

Posted On: Jan 09, 2019

 

    2 Answers Written

  •  luciomontague9
    Posted by Wally

    preg_Match is the pattern, that is used for searching as a string, while preg_replace is the pattern, that contains the string which is used to search the content, which can be the array of string.

     

  •  luciomontague9
    Posted by Wally

    preg_Match is the pattern, that is used for searching as a string, while preg_replace is the pattern, that contains the string which is used to search the content, which can be the array of string.

     

Please Login or Register to leave a response.

Related Questions

PHP Interview Questions

What is mvc in PHP?

MVC stands for Model View Controller. It is an application design pattern for software development that separates the application data and business logic (model) from the presentation (view)....