Jump to content

wildcard in php?


justinh

Recommended Posts

 

Okay let's say $item_to_add is "Horse".

 

if it was in a session it would be horse|1 where 1 is the qty

 

I'm trying to see if $item_to_add is set within the session, but i need to add a wildcard at the end of it because the qty might be 1,2,3 etc..

 

 

 

   if ( ! isset($_SESSION['items']['$item_to_add**need to add some sort of wildcard here**'] ) )

 

Please help, this project is due at the end of the day, i would greatly apprieciate it.

Link to comment
https://forums.phpfreaks.com/topic/142004-wildcard-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.