Jump to content

add text in array


mraza

Recommended Posts

Hi , I need to add text in an array, my array shows like:

Array
(
    [0] => /filse/file.php
    [1] => /files/file2.php
    [2] => /files/file3.php
)

 

so i need to add url in front of them and it will become like this

 

Array
(
    [0] => http://mysite.com/filse/file.php
    [1] => http://mysite.com/files/file2.php
    [2] => http://mysite.com/files/file3.php
)

 

Any idea please.

Thanks

Link to comment
https://forums.phpfreaks.com/topic/215877-add-text-in-array/
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.