Hi Rowan,Unfortunately I can't post all the code here by the mailing list cause 
the message size limit.Kamil should has received by mistake a couple of sents 
with the code, my tries.
Here however the code for str_place:
declare('PHP_TILDE', "~");function str_place(string $string, string $needle): 
string  
      
      
        {
      
      
             if (mb_stripos(PHP_TILDE . $string, $needle)) {
      
      
                 return PHP_STR;
      
      
          } else {
      
      
                 return $needle;
      
      
          }
      
      
        }
Forgive also my typing, the subject is mostly about *simplication* also if 
undubtly Im talking of Classic ASP too.The problem that here arise is exatly 
this philosophic matter: how much easy is easiest? I like the easiest, I don't 
need to show my reputation to write down a complicate "left".. the countrary is 
true..In facts Im exactly pointing out that Classic Asp was doing all those 
stuff easier, maybe withoutneed for the developer to memorize covulsive date 
time parameters, or add one more parameter to do call a "left"function, maybe 
nested..
Daniele Boninihttp://github.com/par7133
------ Original Message ------From: Rowan Collins <rowan.tomm...@gmail.com>Hi 
Daniele,

On 25 September 2021 18:18:59 BST, Daniele B via internals 
<internals@lists.php.net> wrote:
>
>Thx a lot. I try to build a list specifying when it is matter of Classic 
>ASP.This mailing list doesn't support a lot of code per post..

Rather than focusing on how they relate to Classic ASP, a better approach might 
be to look at how proposed functions would fit with other things in PHP, and 
how widely used they would be. There are lots of languages we can borrow ideas 
from, but the goal should be to pick the best bits and adapt them as needed.

Some of these are quite easy to do in PHP - for instance, left() and right() 
are simple with substr(); and str_place() sounds exactly like strpos() from the 
name.

It looks like there is a family of functions related to "words" (presumably 
splitting on space?); perhaps there is a core set that would make the others 
easier?

Finally, remember that a lot of people reading this have never used Classic 
ASP, so don't know what these functions do. Some are easy to guess, but others 
less so, such as is_contraction(), is_givenName(), space(), and 
str_case_normalize()

Regards,

-- 
Rowan Tommins
[IMSoP]
    

Reply via email to