[wp-hackers] What do the key's mean on wp_attachment_metadata

Mark Harwood mark at phunky.co.uk
Wed Jun 7 12:37:38 GMT 2006

Hi there,

Im currently trying to rack my brain around the way that a post's 
attached files work, ive figured out what data needs to be pulled from 
the database but im stuck on understanding what some of the values in 
wp_attachment_metadata mean.

Below is a link to the wp_attachment_metadata for 3 images uploaded to a 


As you can see almost all the key's are the same before the values, 
apart from two of them  s:22 changes to s:23 and s:89 to s:87

Why is this? and what do each of these represent?

Im just trying to understand them a bit more before i go off and do some 
regex's to pull out the data i need.

Many thanks
Mark 'Phunky' Harwood
Founder of EuroCSS.NET and mEm-Gaming.co.uk

More information about the wp-hackers mailing list