Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // http://phpfiddle.org/lite/code/rem2-icej
- $myarray = array(array("'CALL #__comm_repair_count_dates_by_id ('2015-07-01 00:00:00', '2015-07-31 23:59:59', 842, '5,1,3', @c);'",
- "'Call #__commissions_by_date_user_wo ('2015-07-01 00:00:00', '2015-07-31 23:59:59', %1,'5,1,3',1.3,842);'"),
- array("'CALL #__comm_repair_count_dates_by_id ('2015-08-01 00:00:00', '2015-08-31 23:59:59', 842, '5,1,3', @c);'",
- "'CAll #__commissions_by_date_user_wo ('2015-08-01 00:00:00', '2015-08-15 00:00:00', %1,'5,1,3',1.3,842);'"));
- echo '<pre>';
- var_dump($myarray);
- echo '</pre>';
- for ($i = 0; $i < count($myarray); ++$i) {
- for($j = 0;$j <count($myarray[$i]); ++$j) {
- if($j == 1) {
- print str_replace('%1',33.4,$myarray[$i][$j]) . '<br />';
- } else {
- print $myarray[$i][$j] . '<br />';
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement