Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data = 'a:2:{i:0;a:3:{s:4:"Item";s:33:"Facilitation (Content or Process)";s:26:"Description (If different)";s:4:"Test";s:3:"Qty";s:1:"1";}i:1;a:3:{s:4:"Item";s:13:"Second Choice";s:26:"Description (If different)";s:4:"Test";s:3:"Qty";s:1:"2";}}';
- $line_items = unserialize($data);
- foreach ($line_items as $line_item)
- {
- $qty = $line_item['Qty'];
- $description = $line_item['Description (If different)'];
- $item = $line_item['Item'];
- echo '****************';
- echo '<br>';
- echo 'QTY: '.$qty;
- echo '<br>';
- echo $description;
- echo '<br>';
- echo $item;
- echo '<br>';
- echo '****************';
- echo '<br>';
- echo '<br>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement