-
Notifications
You must be signed in to change notification settings - Fork 1
static Urls::echo($echo='')
micahbaumann edited this page Oct 12, 2022
·
1 revision
Returns an array containing one string element to be used to directly output in a path method. It can be used instead of an array to directly output text.
Returns |
---|
Array |
Parameter | Default | Type | Required | Description |
---|---|---|---|---|
$echo | An empty string | String | ❌ | A string to directly output in a path. |
<?php
/*
URLS framework url config file.
Add your paths here:
ex. $urls->path('blog/', 'blog-home.php', true);
*/
include 'urls/Urls.php';
Urls::$base = '/';
$urls = new Urls;
$urls->path('blog/', Urls::echo('This is my blog!'), true);
$urls->exe();
?>
`