cvs: phpdoc-hu /reference/tokenizer/functions token-get-all.xml

[email protected] ("Lajos Cseppent?")
Newsgroups php.doc.hu
Message-ID <cvschappy1162121134@cvsserver>
chappy		Sun Oct 29 11:25:34 2006 UTC

  Added files:                 
    /phpdoc-hu/reference/tokenizer/functions	token-get-all.xml 
  Log:
  sync
  

http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/tokenizer/functions/token-get-all.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/tokenizer/functions/token-get-all.xml
+++ phpdoc-hu/reference/tokenizer/functions/token-get-all.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.9 Maintainer: chappy Status: ready -->  

<refentry id="function.token-get-all">
 <refnamediv>
  <refname>token_get_all</refname>
  <refpurpose>Megadott PHP forrás tokenenekké tördelése</refpurpose>
 </refnamediv>
 <refsect1 role="description">
  &reftitle.description;
  <methodsynopsis>
   <type>array</type><methodname>token_get_all</methodname>
   <methodparam><type>string</type><parameter>source</parameter></methodparam>
  </methodsynopsis>
  <para>
   A <function>token_get_all</function> elemzi a megadott forrás (<parameter>source</parameter>) 
   karakterláncot PHP nyelvi tokenekbe, a Zend motor szótári vizsgálóját használva. 
  </para>
  <para>
   Az elemzõ tokenek listáját lásd a <xref linkend="tokens"/>-ben, vagy használd a 
   <function>token_name</function> függvényt a token értékek karakterlánc formájú 
   kinyerésére. 
  </para>
 </refsect1>
 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    <varlistentry>
     <term><parameter>source</parameter></term>
     <listitem>
      <para>
       Az értelmezendõ PHP forráskód
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>
 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   Egy tömb ami tartalmazza a token azonosítókat. Minden egyes token azonosító vagy 
   egy egyszerû karakter (azaz <literal>;</literal>, <literal>.</literal>, 
   <literal>&gt;</literal>, <literal>!</literal>, stb...), vagy egy kételemû tömb ami 
   a 0. elemben a token indexét tárolja és az 1. elemben az eredeti token tartalmát.
  </para>
 </refsect1>
 <refsect1 role="examples">
  &reftitle.examples;
  <para>
   <example>
    <title><function>token_get_all</function> példák</title>
    <programlisting role="php">
<![CDATA[
<?php
$tokens = token_get_all('<?php echo; ?>'); /* => array(
                                                  array(T_OPEN_TAG, '<?php'), 
                                                  array(T_ECHO, 'echo'),
                                                  ';',
                                                  array(T_CLOSE_TAG, '?>') ); */

/* Megjegyzés: a következõ példában a karakterlánc T_INLINE_HTML-ként 
   lesz értelmezve, a T_COMMENT helyett (T_ML_COMMENT PHP 5 elõtti verziókban).
   Ez azért van, mert nincs nyitó/záró tag a megadott kódban. 
   Ennek azonosnak kell lennie azzal, hogy ha a kommentet a <?php ?> tageken 
   kivül rakod egy átlagos fájlban. */
$tokens = token_get_all('/* komment */'); // => array(array(T_INLINE_HTML, '/* komment */'));
?>
]]>
    </programlisting>
   </example>
  </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:"../../../../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
-->
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.