/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/languages/php.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
1. $i=each($arr)
 
2
        �������� ������� �������, ��������� $i �� ����� �� ������
 
3
        $i=&each($arr) - �� �������
 
4
        ������� �������:
 
5
                list($tmp,)=each($arr);
 
6
                $i=&$arr[$tmp];
 
7
2. $c=$str[$i] 
 
8
        ��������
 
9
3. ������ � php �� "\0" terminated.
 
10
4. $a=$arr[1];
 
11
        ���� $arr[1] undefined, ��������� ������� ��� �������!
 
12
5. $$a  - ��������
 
13
   $$a[$i] - �� ���� �� ��������, ������ �������� ��� $($a[$]) � ����� ���
 
14
        �� �����������!
 
15
6. ������ � ���������� ���������� ����� ������ ������ ���:
 
16
        $GLOBALS['var']=&$...;
 
17
   ������� ������� ��� �� �� ����������� - � �� �����!
 
18
7. $HTTP_POST(GET)_VARS �����-�� ��������� ������ addslashes, �������
 
19
   �������� strip_slashes()
 
20
8. serialize/unserialize - ��������� ������, �.�. ���� ����� ���� ����������
 
21
   ���������� ���� ������� - ��� �� � ���������.
 
22
9. is_array(Array()) = False
 
23
10. a[]=1;unset(a[0]);a[]=2  ----> a=Array(1=>2);
 
24
11. a=1; b=&a; unset(a) -----> b=1
 
25
12. a=5;c=7;b=&a;$a=&c;  ----> b=5
 
26
13. PhP 4.2.x & 4.3.cvs have bugs in realisation usort familty function with
 
27
    big callbacks manipulating strings!!! Sometimes PhP may drop core!
 
28