Jump to content

Recursive Problem


tsilenzio

Recommended Posts

I am using WAMPServer2 and whenever I try to use this function firefox (when pointed towards the page) says page connot be found? :s

 

I was wondering if i coded somthing wrong :s

 

//<?php // -- Enable Text Highlighting -- //

function array_search_recursive($needle, $haystack)
{
    foreach ($haystack as $data) {
        if(!is_array($data)) {
            if($needle == $data) {
                echo 2;
                return true;
            }
        } else {
            return array_search_recursive($needle, $haystack);
        }
    }
}

Link to comment
https://forums.phpfreaks.com/topic/86412-recursive-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.