Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
output
friendlytitle.php
Go to the documentation of this file.
1
<?php
10
$title
=
elgg_extract
(
'title'
,
$vars
);
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
echo
elgg echo
Translates a string.
Definition:
languages.js:43
elgg_extract
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1131
$vars
$vars['type']
Definition:
save.php:11
Generated on Thu Jan 21 2021 00:00:22 for Elgg by
1.8.11