| func_get_arg() | ใช้คืนค่า ค่าข้อมูล ของ argument ในลำดับที่กำหนด |
|---|
function:func_get_arg ( index );
return type:mixed
content:ใช้คืนค่า ค่าข้อมูล ของ argument ในลำดับที่กำหนด
example:function sum() { $total = 0; $count = func_num_args(); for ( $i=0; $i<$count; $i++ ) { $total += func_get_arg( $i ); } return $total; } echo sum ( 500, 300, 400 );