�ĵ��е�ÿ��������ֻ�ǿ��ٲο���ѧ������Ķ�������ĵ���ʹ�� PHP ��ʹ�ø��Ӽ����������ڸ��ƣ�ճ���������������û�һ����ϣ��֪������Ķ������Ķ��壨����ԭ�ͣ���
Note: �Ⱦ������������������Ļ������
���� PHP ��һ����ɢ�������ԣ���������������Ҫ�����壬��Ҫ������Ļ���֪ʶ��
��������������Ǻ�������ʲô���͵�ֵ���������ú��� strlen() �Ķ�����Ϊ��һ��������
strlen (PHP 4, PHP 5) strlen -- ��ȡ�ַ������� ˵�� int strlen ( string str ) ���ظ������ַ��� string �ij��ȡ�
| ��ɲ��� | ˵�� |
|---|---|
| strlen | �������ơ� |
| (PHP 4, PHP 5) | strlen() �� PHP 4 �� PHP 5 �����а汾�ж����ڡ� |
| int | �ú������ص�ֵ�����ͣ�����Ϊ���� integer�������������������ַ����ij��ȣ��� |
| ( string str ) |
��һ������������Ψһ�ģ��������ڸú�������Ϊ string��������Ϊ string��
|
���Խ����Ϻ����Ķ���д��һ����ʽ��
�������� ������ ( �������� ������ )
returned type function name ( parameter type parameter name )
�ܶຯ�����ж������������ in_array()���亯��ԭ�����£�
bool in_array ( mixed $needle, array $haystack [, bool $strict = FALSE ] )
����ʲô��˼��in_array()
����һ��"����"ֵ���ɹ�������ڲ���
haystack �����ҵ�����
needle���� TRUE,
������ʧ��ʱ���� FALSE������ڲ��� haystack ���Ҳ�������
needle������һ������������Ϊ
needle ��������������������ǽ����Ϊ"���"���͡��û�����͵�
needle ����������Ҫ�ҵĶ�������һ��������ֵ���ַ�����������������������������һ��������haystack������Ѱ�ҵķ�Χ���ǵڶ�����������������ѡ����������Ϊ
strict�����еĿ�ѡ��������
[ ������ ] ���������ֲ����
strict ����Ĭ��ֵΪ����ֵ
FALSE����Ҫ�˽⺯��������ϸ�ڣ�������ֲ��кú�����ص�ҳ�档
��������ǰ�� & ����ʹ������ ���� ��ʽ���ݣ�����������
int preg_match ( string $pattern , string $subject [, array &$matches
[, int $flags = 0 [, int $offset = 0 ]]] )
����������У����ǿ��Կ�������������ѡ���� &$matches �������÷�ʽ���ݡ�
�еĺ������������ӵ� PHP �汾��Ϣ�������� html_entity_decode() ������
(PHP 4 >= 4.3.0, PHP 5)
����ζ�Ÿú���ֻ���� PHP 4.3.0 ���Ժ��İ汾��ʹ�á�