Jump to content

Looping logical problem


robert_gsfame

Recommended Posts

lets assume i have this on url: test1.php?itemx=1;2;3;4&itemy=2;3

 

so then i will explode each item

itemx=explode(";",$_GET['itemx'])

itemy=explode(";",$_GET['itemy'])

 

what i want to do is to have another string call $itemz which is the difference between itemx and itemy, therefore the itemz should consist of 1;4

 

how can i do it with loop??

 

 

 

 

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/200161-looping-logical-problem/
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.