I have a serialized array stored in a database as a type BLOB and I am trying to pull this out via ajax and use javascript to unserialize it. The problem is that I can't seam to unserialize it at all. I found this method:
http://www.phpguru.org/static/PHP_Unserialize.html
But that is not working. If I alert(); what it is doing as it does it, all goes well for a second then it returns a null value and breaks everything. Does anyone know of one that is better that will actually work?
Unserialize with javascript
Moderator: General Moderators
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
Have you thought of using JSON ? I know it doesn't help if all the information is in the database so much but....