function check_x($_GET['a'],$_GET['b'],$_GET['c'])这里不用这样,function check_x($a, $b, $c)这样就行了,调用函数时代入想要的数据。参看手册<?php
function add_some_extra(&$string)
{
    $string .= 'and something extra.';
}
$str = 'This is a string, ';
add_some_extra($str);
echo $str;    // outputs 'This is a string, and something extra.'
?>

解决方案 »

  1.   

    非常感谢楼上的这位兄台!
    我明白你写的意思,但是我不知道如何写在函数中调用类似$arr_myarr[$i]这样的数组变量格式!
    php提示我"function check_x($_GET['a'],$_GET['b'],$_GET['c'])"出现语法错误,我是想知道正确的语法格式!
    我翻书了...但是没有找到!
    :( 
    这样写到底错在哪里呢?
      

  2.   

    :) <?php
    function test($testArray){
    for ($i=0; $i<count($testArray); $i++){
    echo $testArray[$i]."<br>";
    }
    }$test = array(1,2,3,4,5,6,7,8,9,0);test($test);
    ?>
      

  3.   

    哦...也就是说php不能在函数中直接调用具体的数组变量了?
    象:function my_function(my_arr[$i])