BenBE at omorphia dot de (08-Jan-2007 03:37)
Hi, If you want to check if two variables are referencing each other (i.e. point to the same memory) you can use a function like this: <?php function same_type(&$var1, &$var2){ return gettype($var1) === gettype($var2); } function is_ref(&$var1, &$var2) { //If a reference exists, the type IS the same if(!same_type($var1, $var2)) { return false; } $same = false; //We now only need to ask for var1 to be an array ;-) if(is_array($var1)) { //Look for an unused index in $var1 4/12 首页 上一页 2 3 4 5 6 7 下一页 尾页
4/12 首页 上一页 2 3 4 5 6 7 下一页 尾页