Elgg
Version 1.9
views
default
output
friendlytitle.php
Go to the documentation of this file.
1
<?php
10
$title
=
$vars
[
'title'
];
11
12
//$title = iconv('UTF-8', 'ASCII//TRANSLIT', $title);
13
$title
= preg_replace(
"/[^\w ]/"
,
""
,
$title
);
14
$title
= str_replace(
" "
,
"-"
,
$title
);
15
$title
= str_replace(
"--"
,
"-"
,
$title
);
16
$title
= trim(
$title
);
17
$title
= strtolower(
$title
);
18
19
echo
$title
;
$title
$title
Friendly title Makes a URL-friendly title.
Definition:
friendlytitle.php:10
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
Generated on Fri Aug 29 2025 00:00:30 for Elgg by
1.9.1