goba            Sat Mar 30 12:16:29 2002 EDT

  Modified files:              
    /phpdoc/hu/functions        var.xml 
  Log:
  Translation ready, and we know the revision number now ;)) Huh...
  
  
Index: phpdoc/hu/functions/var.xml
diff -u phpdoc/hu/functions/var.xml:1.12 phpdoc/hu/functions/var.xml:1.13
--- phpdoc/hu/functions/var.xml:1.12    Sat Mar 30 11:47:56 2002
+++ phpdoc/hu/functions/var.xml Sat Mar 30 12:16:29 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 102 Maintainer: goba Status: updated till print_r -->
+<!-- EN-Revision: 1.104 Maintainer: goba Status: ready -->
 
  <reference id="ref.variables">
   <title>V�ltoz�kkal kapcsolatos f�ggv�nyek</title>
@@ -1191,55 +1191,186 @@
   <refentry id="function.unset">
    <refnamediv>
     <refname>unset</refname>
-    <refpurpose>Felszabad�tja az adott v�ltoz�t.</refpurpose>
+    <refpurpose>Adott v�ltoz� felszabad�t�sa</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Le�r�s</title>
      <methodsynopsis>
-      <type>int</type><methodname>unset</methodname>
+      <type>void</type><methodname>unset</methodname>
       <methodparam><type>mixed</type><parameter>var</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>mixed</type><parameter>var</parameter></methodparam>
+      <methodparam choice="opt"><parameter>...</parameter></methodparam>
      </methodsynopsis>
+    <note>
+     <para>
+      Az <function>unset</function> egy nyelvi szerkezet.
+     </para>
+    </note>
     <para>
-     Az <function>unset</function> megsz�nteti az adott v�ltoz�t, �s
-     igazat ad vissza.
+     Az <function>unset</function> megsz�nteti az adott v�ltoz�kat.
+     A PHP 3-ban mindig &true; �rt�kkel t�r vissza (eg�szen pontosan
+     az 1 �rt�k� eg�sz sz�mmal). A PHP 4-esben az
+     <function>unset</function> t�bb� m�r nem f�ggv�ny, hanem
+     parancs. Ez�rt nincs visszat�r�si �rt�k, �s a visszat�r�si
+     �rt�k haszn�lata feldolgoz�si hib�t jelent.
     </para>
     <para>
      <example>
       <title><function>unset</function> p�lda</title>
       <programlisting role="php">
 <![CDATA[
-unset ($foo);
-unset ($bar['quux']);
+// Egy v�ltoz� t�rl�se
+unset ($ize);
+
+// Egy t�mbelem t�rl�se (nem az eg�sz t�mb t�rl�se!)
+unset ($valami['barmi']);
+
+// T�bb mint egy v�ltoz� t�rl�se
+unset ($ize1, $ize2, $ize3);
 ]]>
       </programlisting>
      </example>
     </para>
     <para>
-     L�sd m�g: <function>isset</function> �s
+     Az <function>unset</function> hat�sa egy f�ggv�nyen bel�l
+     att�l f�gg, hogy milyen t�pus� v�ltoz�t pr�b�lsz meg t�r�lni.
+    </para>
+    <para>
+     Ha egy glob�lis k�rnyezetb�l bet�lt�tt v�ltoz�t pr�b�lsz
+     meg t�r�lni a f�ggv�nyben, csak a lok�lis v�ltoz�t t�rl�d.
+     A h�v� k�rnyezetben l�v� v�ltoz� megtartja 
+     <function>unset</function> h�v�s el�tti �rt�k�t.
+     <informalexample>
+      <programlisting role="php">
+<![CDATA[
+function ize_torlese() {
+    global $ize;
+    unset($ize);
+}
+
+$ize = 'valami';
+ize_torlese();
+echo $ize;
+]]>
+      </programlisting>
+     </informalexample>
+     A fenti p�lda a k�vetkez�t �rja ki:
+     <informalexample>
+      <screen>
+<![CDATA[
+valami
+]]>
+      </screen>
+     </informalexample>
+    </para>
+    <para>
+     Ha egy olyan v�ltoz�t t�r�lsz egy f�ggv�nyben, amit
+     referenciak�pz�ssel adt�l �t, csak a helyi v�ltoz�t
+     t�rl�d. A h�v� k�rnyezetben l�v� v�ltoz� megtartja 
+     <function>unset</function> h�v�s el�tti �rt�k�t.
+     <informalexample>
+      <programlisting role="php">
+<![CDATA[
+function ize(&$valami) {
+    unset($valami);
+    $valami = "m�smilyen sz�veg";
+}
+
+$valami = 'valamilyen sz�veg';
+echo "$valami\n";
+
+foo($valami);
+echo "$valami\n";
+]]>
+      </programlisting>
+     </informalexample>
+     A fenti p�lda kimenete:
+     <informalexample>
+      <screen>
+<![CDATA[
+valamilyen sz�veg
+valamilyen sz�veg
+]]>
+      </screen>
+     </informalexample>
+    </para>
+    <para>
+     Ha egy statikus v�ltoz�t t�r�lsz egy f�ggv�nyben, az
+     <function>unset</function> t�rli a v�ltoz�t, �s minden
+     r� mutat� referenci�t.
+     <informalexample>
+      <programlisting role="php">
+<![CDATA[
+function ize() {
+    static $a;
+    $a++;
+    echo "$a\n";
+    unset($a);
+}
+
+ize();
+ize();
+ize();
+]]>
+      </programlisting>
+     </informalexample>
+     A fenti p�lda kimenete:
+     <informalexample>
+      <screen>
+<![CDATA[
+1
+2
+3
+]]>
+      </screen>
+     </informalexample>
+    </para>
+    <para>
+     Ha egy glob�lis v�ltoz�t szeretn�l t�r�lni egy f�ggv�nyen
+     bel�l, haszn�ld a <varname>$GLOBALS</varname>
+     t�mb�t erre a c�lra:
+     <informalexample>
+      <programlisting role="php">
+<![CDATA[
+function ize() {
+    unset($GLOBALS['valami']);
+}
+
+$valami = "b�rmi";
+ize();
+]]>
+      </programlisting>
+     </informalexample>
+    </para>
+    <para>
+     L�sd m�g <function>isset</function> �s
      <function>empty</function>.
     </para>
    </refsect1>
   </refentry>
-  
+
   <refentry id="function.var-dump">
    <refnamediv>
     <refname>var_dump</refname>
-    <refpurpose>Inform�ci�t ad egy v�ltoz�r�l</refpurpose>
+    <refpurpose>Inform�ci� egy v�ltoz�r�l</refpurpose>
    </refnamediv>
    <refsect1>
     <title>Le�r�s</title>
      <methodsynopsis>
       <type>void</type><methodname>var_dump</methodname>
       <methodparam><type>mixed</type><parameter>expression</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>mixed</type><parameter>expression</parameter></methodparam>
+      <methodparam choice="opt"><parameter>...</parameter></methodparam>
      </methodsynopsis>
     <simpara>
-     Ez a f�ggv�ny struktur�lt inform�ci�t ad egy kifejez�sr�l,
-     ami tartalmazza az �rt�k�t �s a t�pus�t. A t�mb�k rekurz�van
+     Ez a f�ggv�ny struktur�lt inform�ci�t ad egy vagy t�bb
+     kifejez�sr�l, az �rt�kek �s t�pusok ki�r�s�val. A t�mb�k rekurz�van
      ker�lnek feldolgoz�sra, az �rt�kek bekezd�s�vel, hogy l�sd a strukt�r�t.
     </simpara>
+    &tip.ob-capture;
     <simpara>
-     Hasonl�tsd �ssze a <function>var_dump</function>-ot �s a
-     <function>print_r</function>-t.
+     Hasonl�tsd �ssze a <function>var_dump</function> f�ggv�nyt �s a
+     <function>print_r</function> f�ggv�nyt.
     </simpara>
     <para>
      <informalexample>
@@ -1247,13 +1378,127 @@
 <![CDATA[
 <pre>
 <?php
-    $a = array (1, 2, array ("a", "b", "c"));
-    var_dump ($a);
+$a = array (1, 2, array ("a", "b", "c"));
+var_dump ($a);
+
+/* kimenete:
+array(3) {
+  [0]=>
+  int(1)
+  [1]=>
+  int(2)
+  [2]=>
+  array(3) {
+    [0]=>
+    string(1) "a"
+    [1]=>
+    string(1) "b"
+    [2]=>
+    string(1) "c"
+  }
+}
+
+*/
+
+$b = 3.1;
+$c = TRUE;
+var_dump($b,$c);
+
+/* kimenete:
+float(3.1)
+bool(true)
+
+*/
 ?>
 </pre>
 ]]>
       </programlisting>
      </informalexample>
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.var-export">
+   <refnamediv>
+    <refname>var_export</refname>
+    <refpurpose>�rv�nyes PHP k�d reprezent�ci�t ad egy v�ltoz�r�l</refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>mixed</type><methodname>var_export</methodname>
+      <methodparam><type>mixed</type><parameter>expression</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>bool</type><parameter>return</parameter></methodparam>
+     </methodsynopsis>
+    <simpara>
+     Ez a f�ggv�ny a param�terben �tadott �rt�k strukt�r�lt karaktersorozat
+     reprezent�ci�j�t adja vissza. Hasonl�t a <function>var_dump</function>
+     f�ggv�nyhez, azzal a kiv�tellel, hogy a <function>var_export</function>
+     el��ll�tott �rt�ke �rv�nyes PHP k�d.
+    </simpara>
+    <simpara>
+     Az el��ll�tott �rt�k alapesetben ki�r�dik, de ha a m�sodik param�terben
+     a &true; �rt�ket adod meg a f�ggv�ny visszat�r az el��ll�tott �rt�kkel.
+    </simpara>
+    <simpara>
+     Hasonl�tsd �ssze a <function>var_export</function> �s a
+     <function>var_dump</function> f�ggv�nyeket.
+    </simpara>
+    <para>
+     <informalexample>
+      <programlisting role="php">
+<![CDATA[
+<pre>
+<?php
+$a = array (1, 2, array ("a", "b", "c"));
+var_export ($a);
+
+/* kimenete:
+array (
+  0 => 1,
+  1 => 2,
+  2 => 
+  array (
+    0 => 'a',
+    1 => 'b',
+    2 => 'c',
+  ),
+)
+*/
+
+$b = 3.1;
+$v = var_export($b, TRUE);
+echo $v;
+
+/* kimenete:
+3.1
+*/
+?>
+</pre>
+]]>
+      </programlisting>
+     </informalexample>
+    </para>
+   </refsect1>
+  </refentry>
+
+  <refentry id="function.is-callable">
+   <refnamediv>
+    <refname>is_callable</refname>
+    <refpurpose>
+     H�vhat� tulajdons�g ellen�rz�se
+    </refpurpose>
+   </refnamediv>
+   <refsect1>
+    <title>Le�r�s</title>
+     <methodsynopsis>
+      <type>bool</type><methodname>is_callable</methodname>
+      <methodparam><type>mixed</type><parameter>var</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>bool</type><parameter>syntax_only</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>string</type><parameter>callable_name</parameter></methodparam>
+     </methodsynopsis>
+    <para>
+     &warn.undocumented.func;
     </para>
    </refsect1>
   </refentry>


Reply via email to