Jump to content

Link in php


kwdelre

Recommended Posts

@GetFreaky: Why would you do that? You can do just do this:

 

a.php

<?php
$variable = 'Some value';

 

b.php

<?php
include 'a.php';
echo $variable

 

There are almost no cases where you should use the global keyword.

 

As for what the OP wants, I think he's after something like this:

 

$var = '<a href="somefile.php">Link</a>';

Link to comment
https://forums.phpfreaks.com/topic/206724-link-in-php/#findComment-1081116
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.