Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert eregi function to php 5.3 [duplicate]

Tags:

regex

php

eregi

Possible Duplicate:
How can I convert ereg expressions to preg in PHP?

How do i convert this code to php 5.3:

if (eregi("VERIFIED",$this->ipn_response)) { }
like image 314
Carlos Barbosa Avatar asked Dec 10 '25 10:12

Carlos Barbosa


1 Answers

if (preg_match("/VERIFIED/i",$this->ipn_response)) { }
like image 70
Yuri Stuken Avatar answered Dec 11 '25 23:12

Yuri Stuken



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!