0

Php

Variable $refererUrl: http://amitberahello.test/checkout/customer/login/user/devbera

and search checkout/customer/login

$refererUrl = 'http://amitberahello.test/checkout/customer/login/user/devbera';

if (preg_match("/checkout/customer/login/", $refererUrl)) {

    // Do something
}

Here preg_match condition is not working. Suppose by refer URL has checkout/customer/login in this patch then the condition will work.

Amit Bera
  • 7,581
  • 7
  • 31
  • 57

0 Answers0