mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
get rid of this nasty <br />
add a cr before ]]> add a 'this example will output' between the program and the output git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@150405 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
3b1a6f3db4
commit
4ba3ed3633
1 changed files with 10 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- splitted from ./en/functions/var.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.is-array">
|
||||
<refnamediv>
|
||||
|
@ -24,19 +24,23 @@
|
|||
<?php
|
||||
$yes = array('this', 'is', 'an array');
|
||||
|
||||
echo is_array($yes) ? 'Array' : 'not Array';
|
||||
echo '<br/>';
|
||||
echo is_array($yes) ? 'Array' : 'not an Array';
|
||||
echo "\n";
|
||||
|
||||
$no = 'this is a string';
|
||||
|
||||
echo is_array($no) ? 'Array' : 'not Array';
|
||||
echo is_array($no) ? 'Array' : 'not an Array';
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
This example will output :
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array<br/>
|
||||
not Array]]>
|
||||
Array
|
||||
not an Array
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
|
|
Loading…
Reference in a new issue