Hi. Since I'm finding this site helpful I thought I'd sign up :)
I need to get the stock values out of this array:
Array (
[stock0] => 1
[stockdate0] =>
[stock1] => 3
[stockdate1] => apple
[stock2] => 2 [
stockdate2] =>
)
I need to pattern match on this array, where the array key = "stock" + 1 wildcard character. I have tried using the array filter function to get every other value on the php manual but the empty values seem to throw it out. I tried alot of different things I found but nothing is working.
Can this be done?