Jump to content

extract data from Function


simzam

Recommended Posts

I want to get loop numbers and hyperlinks from other included file function

how to call function that gives me all 1-10 numbers and hyperlinks thanks

 

 
<?php
include('linksandid.php');
idlink(); here i want get all numbers and hyperlinks separately  
?>

 

linksandid.php:

<?php
function idlink() {
	for($i =1; $i <= 10; $i ++) {
	$links = "<a href=\"http://localhost\123.php?page=$i\"> $i</a> ";
	}
?>

Link to comment
https://forums.phpfreaks.com/topic/222573-extract-data-from-function/
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.