Viewing 1 replies (of 1 total)
  • Not sure about above code, but typically what you want to do is use an array of key value pairs and a foreach:

    All in PHP:

    <?php
    $var = array(
    a => user1,
    b => user2,
    c => user3
    );
    //Then you can do a foreach loop thru the array
    foreach ($key as $value) {
    //output the value for each iteration
    echo '<p>The User is: ' . $value . '</p>';
    }
    ?>

    The WordPress Loop and most (useful) functions in WordPress use these two fundamental PHP functions in some manner.

Viewing 1 replies (of 1 total)

The topic ‘Call several urls’ is closed to new replies.