Reputation: 1762
In phpmyadmin and in the print_r of the entire array the value for template_id is 3, but when I print the value directly I get 31?
Any inights as to why this is happening would be greatly appreciated.
When I print_r from $data['resume'] I get:
Array ( [profile_id] => 38 [name] => Amy P. Cherwim [occupation] => Administrative Assistant [tagline] => Administrative Assistant [phone] => 444-222-4339 [fax] => [email] => [email protected] [website] => [address] => 336 W. Chugalug Way Sentinel, WY 33666 [user_id] => 1 [title] => Amy's Profile [date_add] => 0000-00-00 00:00:00 [date_mod] => 2012-03-04 10:53:40 [resume_id] => 316 [vanity_name] => Copy of Sample of Template 3 [template_id] => 3 [scale] => 1 ) 1
When I print_r from $data['resume']['template_id'] I get: 31
Upvotes: 0
Views: 44
Reputation: 7882
print_r
returns true as well as echoing (hence 3 for the value, 1 for true). To have it just return the value, use print_r($var, true)
.
Upvotes: 3