I am using array_key_exists on an associative array to detect if a key exists like this...
if (array_key_exists('Packaged price (£3.00)', $item))
{
echo 'The Key Exists';
}
This works fine, but I want to modify it so that it checks if the key has packaged in the name. So instead of checking just for 'Packaged price (£3.00)' it would also work for the following...
Packaged cost (£3.00)
Packaged price (£17.00)
Packaged Item
Is this possible?