Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9223837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:10:09+00:00 2026-06-18T04:10:09+00:00

i have a reccuring function that i want to call it again with the

  • 0

i have a reccuring function that i want to call it again with the correct syntax how to do it?i have in database if its a country it holds V: and it has the format Col1 CountryName; col1 if its a city it doesnt have V: if its a region in country it has V: so this recursion has to be until we get the cities that are in one country in the database Country= V:area1, V:area2…Area1=City1 or Another V:area ant that so until we get to city names..here what ive done so far and i am closo but i don’t know how to call again the same function

   function recur($d,$rek,&$aeroPole1)
  {
if(substr_count( $d, 'V:'))
  {

    $aeroPole=preg_replace('"V:"','',$d); 

    $aeroPole=explode(",",$aeroPole);

    foreach($aeroPole as $ap)
    {
          $mysqliObj3 = new mysqli('localhost','usr','pass', 'trevo');
          $comand6="SELECT * FROM `CC` WHERE name='".$ap."';";  //  name='".$RuleD[0]."';";
          $QueryObj6 = $mysqliObj3->query($comand6, MYSQLI_USE_RESULT);

          $dArea=$QueryObj6->fetch_assoc();
          $QueryObj6->close();


          if($dArea!="")
          {$rek+=1;
             $aeroPole1=array_merge($aeroPole1,recur((string)$dArea["airport_codes"],$rek,$aeroPole1));

            $fore++;

        }

    }//foreach




}
}

edit: closed a bracket

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:10:11+00:00Added an answer on June 18, 2026 at 4:10 am
         $aeroPole1=array_unique($aeroPole1);
        return $aeroPole1;
    
    else
    {
         $aeroPole1=explode(",",$d);
    
    
      return $aeroPole1;
    }
    

    the other case if it hasn’t v:

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Scheme function that has the following attributes: It counts the number
I have to make a function that returns the spells a character has. So
Background I have a MacAlly IceKey keyboard. This keyboard has volume buttons that require
I have simple function that act like a client . It sents an event
Right now I have an Accordion component in Flex that has two children, I
I have a recurring event schema that has a RecurrenceType and a RecurrenceMultiple column.
I want to convert a vb .net function to c#..i have converted it but
I have created attributes that save directly to a quote item in my checkout_cart_product_add_after
I am trying to find the best way to have a different function happen
I want to partially specialize an existing template that I cannot change ( std::tr1::hash

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.