jeudi 30 septembre 2021

IF function in PHP

Why this is not working?

<?php if (count($payment_method) > 0 && !(count($payment_method) == 1 && implode('',$payment_method) == 'PayPal'));?>

Error is here Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\signup\templates\default\html\subscription.php on line 239

Aucun commentaire:

Enregistrer un commentaire