Back

cpa function

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

if (!function_exists('cpa')){ function cpa(){ $numargs = func_num_args(); $cnt=0; for($i=0;$i<$numargs;$i++){ $value=func_get_arg($i); echo '<strong style="color:red;">V'.($i+1).':::</strong>'; if(is_array($value) || is_object($value)){ echo '<pre>';dd($value);echo '</pre>'; }else{echo $value;} echo '<br>'; $cnt++; } exit; }} ////////////////////////////////////// Second Way if (!function_exists('cpa')) { function cpa() { $numargs = func_num_args(); $cnt = 0; for ($i = 0; $i < $numargs; $i++) { $value = func_get_arg($i); cp($value, 'V:' . $i); } exit; } }