Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115462 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86588 invoked from network); 18 Jul 2021 08:44:02 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 18 Jul 2021 08:44:02 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 799741804AA for ; Sun, 18 Jul 2021 02:08:44 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 18 Jul 2021 02:08:41 -0700 (PDT) Received: by mail-ot1-f41.google.com with SMTP id a17-20020a9d3e110000b02904ce97efee36so3109700otd.7 for ; Sun, 18 Jul 2021 02:08:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=J1fcX8fWiciwXAOOgazOPfDZMOimBXOnlFzKWBzjIIU=; b=UIR5tpgbhnccqsHRh2hfBXnohGFkfTx2hmyBsV02GElPCBhvTBnYyZwukef2uMizu5 ok+LX3B07gt8R+KRVNc6qesVuDreV9iAAIb+v36yyUQc63OUQPA6kX6qg7IPSWsj7nFi FZ3afJ8FMqzg2/3LYFZ84soY6LpGvMyLyMfesneNBCLn6yWKrwSmbvmAqBEMHLXeCarO or/ksZnWakj/j52oZpvZwk7EIHEWSIAUdlpZvQyYRE9PkjsRChMDlgaBdP19W6KeW/sB X0L6qwNPbiemIW6robZm2wWk+hGsbtZ0Ew97kVyu40uPFVtUCd1Y7joXkpea6/xJehqq Hq3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=J1fcX8fWiciwXAOOgazOPfDZMOimBXOnlFzKWBzjIIU=; b=SmCMEcOpnjVdXS0FEX5C010FDuhz9OGQzqsD4kMsCk5YjfVUnlQ7m9fcRHd7C26RIk ek4HFSG/VIiD7d6YpmehxO2JwNf5UXkhrSSf5nSB/8r5CDuJ6b1TIqmssS6UJl/r1/q1 IClQoxIuIK0BjBnB1542fPhY3ki9J0nBrlnxym0wl0lvx/+puhqAZ9hr+6yotE2cQ0tY k30Uv/wdhhcNFE/0PCS/qMul7mvstdtPVjOseqHipk8WjAlmg8MuWLwrb/ARJ6C0Ylxo fVzV/MrPXxfVZVRAQyNyPyk2lvT4RNc2DLi1KDC1MivjLMPlnpbL1xi24dheewv/gm6q PKkQ== X-Gm-Message-State: AOAM530BxAoa6rTtI1rycpTgzWBUncvJQpob7WbLDCRGz1PjV3yjM9sg atUP9j82u+DVS9J5/nPRgJac9cgLIkt54iagCRKT4HQygrE= X-Google-Smtp-Source: ABdhPJwL+STybAwlB06Co3GnHH+lv3wbX3FK/YxMdIQRGSDczHmZUQu+fU8PzWYtcRRr7s4JFv8TIDO4VQXhhnnHTgA= X-Received: by 2002:a9d:8a3:: with SMTP id 32mr15016679otf.277.1626599319983; Sun, 18 Jul 2021 02:08:39 -0700 (PDT) MIME-Version: 1.0 Date: Sun, 18 Jul 2021 14:08:28 +0500 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000a8dae605c7622ace" Subject: standardize php builtin functions From: khaweronline@gmail.com (Abdul Haq Sheikh) --000000000000a8dae605c7622ace Content-Type: text/plain; charset="UTF-8" Hello Internals, PHP has built in functions for string, array and math etc. But some string and array functions start with Str_* and array_* but not all. If we standardize php builtin functions so all string functions start with str_*, and all array functions start with array_* and all math functions start with math_*, it will provide a lot of help to PHP developers. If we are using VS Code, Sublime text, PHPStorm etc, developers will simply write str_ or array_ or math_ and IntelliSensewill popup all string, array and math functions. There will be no BC break, because math_floor() will be an alias of floor() and array_asort() will be an alias of asort(), file_basename will be an alias of basename(). - Prefix reaming string functions with str_* - Prefix reaming array functions with array_* - Prefix math functions with math_* - Prefix file functions with file_* --000000000000a8dae605c7622ace--