Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51754 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17508 invoked from network); 30 Mar 2011 16:00:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Mar 2011 16:00:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=h.reindl@thelounge.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=h.reindl@thelounge.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thelounge.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: h.reindl@thelounge.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Windows 98 (1) Received: from [91.118.73.15] ([91.118.73.15:33919] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/56-07269-B93539D4 for ; Wed, 30 Mar 2011 11:00:28 -0500 Received: from [10.0.0.99] (rh.thelounge.net [10.0.0.99]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (Postfix) with ESMTPSA id 3A4E4AD for ; Wed, 30 Mar 2011 18:00:25 +0200 (CEST) Message-ID: <4D935399.5050609@thelounge.net> Date: Wed, 30 Mar 2011 18:00:25 +0200 Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.9 MIME-Version: 1.0 To: internals@lists.php.net References: <4D92CC38.5040900@toolpark.com> <004301cbeee8$e54a8280$afdf8780$@com> In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBEEB69A2D41DA3B1D9C41A5A" Subject: Re: [PHP-DEV] Adding a more logical string slicing function to PHP From: h.reindl@thelounge.net (Reindl Harald) --------------enigBEEB69A2D41DA3B1D9C41A5A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 30.03.2011 17:54, schrieb Chad Fulton: > While I personally like PHP's substr() an awful lot >=20 > With that in mind, if this function was to be implemented, I think > that naming it substring() instead of str_slice() might make it easier > for people to pick up out of the box, since PHP developers often have > quite a bit of overlap with Javascript a really bad idea! after that you have substr() and substring() and we should avoid doing things like "mysql_escape_string" and "mysql_real_escap_string" again --------------enigBEEB69A2D41DA3B1D9C41A5A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAk2TU5kACgkQhmBjz394AnmGHwCcD8mb1BOrO5U28tsRbOp3G3vP SCYAn2elNw1gSNQyI1wz0PEuMYaem9Vs =ATaH -----END PGP SIGNATURE----- --------------enigBEEB69A2D41DA3B1D9C41A5A--