If (! Preg_match (& quot; ^ 1 [34578] d {9} $ & quot;, $ this-& gt; request-& gt; post [& #39; telephone & #39;]) {$ this-& gt; error [& #39; telephone & #39;] $ this-& gt; language-& gt; get (& #39; error_telephone & #39;) ;}else {$ telephone_v $ this-& gt; model_account_customer-& g phpif judgment
If (! Preg_match ("/^ 1 [34578] \ d {9} $/", $ this-> request-> post ['telphone']) {
$ This-> error ['telphone'] = $ this-> language-> get ('error _ telphone ');
}
Else {
$ Telephone_v = $ this-> model_account_customer-> getTelephoneValidation ($ this-> request-> post ['telphone']);
If ($ telephone_v! = 0 ){
// $ This-> error ['telphone'] = $ this-> language-> get ('error _ telephone_v ');
Printf ("the obtained data is: % d", $ telephone_v );
$ This-> error ['telphone'] = $ this-> language-> get ('error _ telephone_v ');
}
}
Surprisingly, $ telephone_v = 0 is executed and 0 is printed. the error is displayed normally.