Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pull value a:6 as 6 from a serialized array 1

Status
Not open for further replies.

torodre

Technical User
Nov 8, 2008
7
0
0
US
Hi
I am looking to use the value a:6 as 6 from a serialized array pulled from a db. As print_r shows
a:6:{i:0;i:19;i:1;i:43;i:2;i:73;i:3;i:8;i:4;i:52;i:5;i:25;}

purpose, to evaluate end of array to execute:
Header("Location: url")

Any other suggested ideas welcome.

thanks
torodre
 
Not sure I understand, the 6 is just the amount of elements in the array.

If you want that un-seralize the array and then use count on it.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top