mirror of
https://github.com/php/doc-pt_br.git
synced 2026-04-26 17:48:09 +02:00
9f933eab04
* Corrections to many issues found by QA scripts, as well as alignment of line numbers between en and pt_br xml files * Update to abandoned/outdated/missing pages in reference/filesystem/ * Correction to parameter 'filename' * Updates to abandoned/outdated/missing pages in reference/var/ * Updates to match recent revision in `en` pages * update to migration83/other-changes.xml according to last english revision * update to language/types/float.xml according to last `en` version * update to reference/calendar/constants.xml according to last `en`version --------- Co-authored-by: LEONARDO LARA RODRIGUES <leonardolara@github.com>
102 lines
2.5 KiB
XML
102 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 0e9db383695b10640783f15a2607763ce9cf34f0 Maintainer: leonardolara Status: ready --><!-- CREDITS: felipe, leonardolara -->
|
|
<refentry xml:id="function.is-array" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>is_array</refname>
|
|
<refpurpose>Verifica se a variável é um array</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>is_array</methodname>
|
|
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Verifica se uma dada variável é um array.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>value</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
A variável a ser avaliada.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retorna &true; se <parameter>value</parameter> é um <type>array</type>,
|
|
&false; caso contrário.
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Verificando se a variável é um array</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$sim = array('este', 'é', 'um array');
|
|
|
|
echo is_array($sim) ? 'Array' : 'não Array';
|
|
echo "\n";
|
|
|
|
$nao = 'esta é uma string';
|
|
|
|
echo is_array($nao) ? 'Array' : 'não Array';
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
Array
|
|
não Array
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>array_is_list</function></member>
|
|
<member><function>is_float</function></member>
|
|
<member><function>is_int</function></member>
|
|
<member><function>is_string</function></member>
|
|
<member><function>is_object</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|