mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fix links
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@289374 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
429e811663
commit
ebe8fd16aa
1 changed files with 10 additions and 10 deletions
|
@ -211,8 +211,8 @@ echo "myfunc($variable) = " . myfunc($variable);
|
|||
<para>
|
||||
To be able to use the results of your function in an expression (such
|
||||
as concatenating it with other strings in the example above), you need
|
||||
to <function>return</function> the value, not <function>echo</function>
|
||||
it.
|
||||
to <link linkend="control-structures.return">return</link> the value,
|
||||
not <function>echo</function> it.
|
||||
</para>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
@ -262,9 +262,9 @@ echo "myfunc($variable) = " . myfunc($variable);
|
|||
and the <link linkend="ref.session">session
|
||||
functions</link> need to add headers to the output stream but headers
|
||||
can only be sent before all other content. There can be no output
|
||||
before using these functions, output such as HTML. The function <function>
|
||||
headers_sent</function> will check if your script has already sent
|
||||
headers and see also the <link linkend="ref.outcontrol">Output Control
|
||||
before using these functions, output such as HTML. The function
|
||||
<function>headers_sent</function> will check if your script has already
|
||||
sent headers and see also the <link linkend="ref.outcontrol">Output Control
|
||||
functions</link>.
|
||||
</para>
|
||||
</answer>
|
||||
|
@ -360,11 +360,11 @@ foreach ($headers as $name => $content) {
|
|||
In order to embed <?xml straight into your PHP code, you'll have to turn off
|
||||
short tags by having the PHP directive
|
||||
<link linkend="ini.short-open-tag">short_open_tags</link> set to
|
||||
<literal>0</literal>. You cannot set this directive with <function>
|
||||
ini_set</function>. Regardless of <link linkend="ini.short-open-tag">
|
||||
short_open_tags</link> being on or off, you can do something like:
|
||||
<literal><?php echo '<?xml'; ?></literal>. The default
|
||||
for this directive is on.
|
||||
<literal>0</literal>. You cannot set this directive with
|
||||
<function>ini_set</function>. Regardless of
|
||||
<link linkend="ini.short-open-tag">short_open_tags</link> being on or
|
||||
off, you can do something like: <literal><?php echo '<?xml'; ?></literal>.
|
||||
The default for this directive is <literal>On</literal>.
|
||||
</para>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
|
Loading…
Reference in a new issue