php - how i get the information -


i have script , need result:

numelem / title / elmposte

    foreach ( $jobprintinginfos $jobprinting_index => $jobprinting ) {                      $machine      = $jobprinting ['elmposte'];                      //var_dump($machine);                 //    var_dump($machine);                  }                  foreach ( $getjobresult->components->component $component_index => $component ) {                      $quote_support ='';                     $quote_impression = '';                          $quote_title = ($component->numelem) . ' / ' . $component->title . ' ' .$machine. "\r\n";                      var_dump($quote_title); } 

but when var_dump($quote_title) have last machine not machine :such

  • 1/dessus /nesspresso
  • 2/inter/nesspresso
  • 3/assem/nesspresso

thanks in advance

i dont know idea behind script... if want $quote_title <-- 1 long string need add .

like this:

$quote_title .= ($component->numelem) . ' / ' . $component->title . ' ' .$machine. "\r\n"; 

--------------------^

or array, easyer use loop


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -