How to write PHP Array functions for URL links.?

Johnson

New member
Hi, I am new in PHP and I wanna finish a small assignment. it sounds easy but hard for me. I wish somebody can help me and give me support. I will appreciate it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 an array with a list of URLs (minimum 3)
2 an array with a list of website names (minimum 3)
3 PHP code to create an unordered list of links using the two arrays you created above
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My code looks like that:
<div>
<?php

$info1 = array1{ 'http://www.yahoo.com','http://www.google.com' };
$info2= array2{ 'Yahoo','Google' };
<ul>
<li></li>
<li></li>

</ul>
?>
</div>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have no idea how to connect the two arrays together with php function.
please give me some ideas.
 
Back
Top