/ Published in: PHP
![](/img/icon_sav.png?v3)
Build a regex expression to all array elements are present in any order.
Gets an array of strings (Sample: array("Access Denied","error","could not be retrieved")
Return sample: '(?=.*Access Denied)(?=.*error)(?=.*could not be retrieved)
Gets an array of strings (Sample: array("Access Denied","error","could not be retrieved")
Return sample: '(?=.*Access Denied)(?=.*error)(?=.*could not be retrieved)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function regex_and($array) { }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)