Category : reference

I have this "reference code" in a separate div and I want to insert it beside the page title in the 2nd code: is it possible ? <div class="col-xs-<?php echo $headCol ?>"> <h3 class="inv col"><b><?php echo lang("reference"); ?>: </b><?php echo $invoice->reference; ?></h3> </div> Inside this one $etat_header .= ($show_center_title?("<center><h3 class="page-title">".$page_title."</h3></center>"):""); Sourc..

Read more

test.php class test { public $param = -1; public function change() { $ar = array(&$this->param); func($ar); // func : values = 10; } public function change2(&$value) { $ar = array($value); func($ar); } } other php $tc = new test(); $param2 = -1; $tc->change(); $tc->change2($param2); $tc->change2($param3); echo "param : " . $tc->param; // param : 10 ..

Read more

I am trying to iterate over a php object and changing each string value by reference, but something is just not working. In some arrays the strings will not be changed. Anyone has an idea why? Or has a suggestion on how to solve the task? Here is my code: recursive_object_string_changer($object); function recursive_object_string_changer($object) { if($object ..

Read more