Welcome Guest, Not a member yet? Register   Sign In
meta() function not documented.
#3

[eluser]DooBie[/eluser]
Are you asking me to write the documentation of this function?
I am sorry, but, I do not understand correctly what you say to me, if it is it, I will be delighted(enchanted), of it, his(her,your) use is very simple.

Code:
DOC:
meta()

Lets you create HEAD <meta /> tags. The first parameter contains an associative array for meta name to meta value. The second, are optional, and is for a newline caracter, by default is "\n". Example:
$metas = array(
  'author' => 'My name',
  'description' => 'My cool website :)',
  'title' => 'Welcome to my site');
echo meta($metas);
/*
gives
<meta http-equiv="author" content="My name" />
<meta http-equiv="description" content="My cool website :)" />
<meta http-equiv="title" content="Welcome to my site" />
*/

There is an optional second parameter that is a string for the last caracters in the meta, by default, this parameter are a newline caracter ("\n"). Example:

$metas = array(
  'author' => 'My name',
  'description' => 'My cool website :)',
  'title' => 'Welcome to my site');
echo meta($metas, '');
/*
gives
<meta http-equiv="author" content="My name" /><meta http-equiv="description" content="My cool website :)" /><meta http-equiv="title" content="Welcome to my site" />
*/

I repeat, sorry for my english


Messages In This Thread
meta() function not documented. - by El Forum - 10-21-2008, 06:03 AM
meta() function not documented. - by El Forum - 10-21-2008, 06:55 AM
meta() function not documented. - by El Forum - 10-21-2008, 07:23 AM
meta() function not documented. - by El Forum - 10-24-2008, 05:15 AM
meta() function not documented. - by El Forum - 10-24-2008, 05:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB