2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2004-11-10 08:30:50 +00:00
|
|
|
<!-- $Revision: 1.9 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 -->
|
|
|
|
<refentry id="function.eregi">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>eregi</refname>
|
2004-08-19 12:14:46 +00:00
|
|
|
<refpurpose>Case insensitive regular expression match</refpurpose>
|
2002-04-15 00:12:54 +00:00
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
2003-06-20 21:31:15 +00:00
|
|
|
<methodsynopsis>
|
2004-08-17 07:26:27 +00:00
|
|
|
<type>int</type><methodname>eregi</methodname>
|
2003-06-20 21:31:15 +00:00
|
|
|
<methodparam><type>string</type><parameter>pattern</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>string</parameter></methodparam>
|
2004-11-10 08:30:50 +00:00
|
|
|
<methodparam choice="opt"><type>array</type><parameter role="reference">regs</parameter></methodparam>
|
2003-06-20 21:31:15 +00:00
|
|
|
</methodsynopsis>
|
2002-04-15 00:12:54 +00:00
|
|
|
<para>
|
|
|
|
This function is identical to <function>ereg</function> except
|
|
|
|
that this ignores case distinction when matching alphabetic
|
|
|
|
characters.
|
2003-06-20 21:31:15 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2002-04-15 00:12:54 +00:00
|
|
|
<example>
|
|
|
|
<title><function>eregi</function> example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
2003-02-20 09:47:21 +00:00
|
|
|
<?php
|
2004-08-16 23:39:05 +00:00
|
|
|
$string = 'XYZ';
|
|
|
|
if (eregi('z', $string)) {
|
2002-04-15 00:12:54 +00:00
|
|
|
echo "'$string' contains a 'z' or 'Z'!";
|
|
|
|
}
|
2003-02-20 09:47:21 +00:00
|
|
|
?>
|
2002-04-15 00:12:54 +00:00
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
<para>
|
2003-06-20 21:31:15 +00:00
|
|
|
See also <function>ereg</function>, <function>ereg_replace</function>,
|
|
|
|
<function>eregi_replace</function>, <function>stripos</function>, and
|
2003-02-20 09:47:21 +00:00
|
|
|
<function>stristr</function>.
|
2002-04-15 00:12:54 +00:00
|
|
|
</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
|
|
|
|
-->
|