Jump to content

calling an array id from another phpfile


pneudralics

Recommended Posts

How do I call an array id from another php file? I did the include and $array [id];
Still nothing..? I want to get id [WELCOME_INTRO] to display on another php page.
This is the array (array.php):

[code]
$ar_build = array(
        'WELCOME_INTRO' => !$VAR[4] ? get_source("".$VAR[5]."/blah.html") : get_source("".$VAR[5]."/haha.html"),
        'ADS' => html_adds(3),
        );
[/code]


This is part of a phpfile (myphpfile.php)
[code]
<table style="width:100%;" cellspacing="4" cellpadding="4">
<tr>
<td style="font-size:10pt;">

<span style="vertical-align:middle;"><b>LATEST ANNOUNCEMENTS</b></span>


<div style="padding:8px;">
<div>
<?php echo $ar_build [WELCOME_INTRO]; ?>
</div>
</div>
</td>
</tr>
</table>

(I include the array.php to this php file)
[/code]

All I want is the stuff on blah.html page to be written where WELCOME_INTRO is.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.