~ /. Bashrc configuration alias command Alias can you count the number of entries?

nano ~/.bashrc

I use this to build Alias

for example

alias testserver="php /Applications/apache/testserver.php"

which php file will be executed in this way
, but suppose I want to give a reference to php?
is assumed to be "testserver abc"
so that I can input parameters to testserver.php and be caught by php? Is this possible?

Mar.01,2021

just take parameters directly. Note that you need to leave a space after alias. As follows

alias testserver='php /Applications/apache/testserver.php '
testserver abc

just take parameters directly:

php myfile.php abc

// :
if (count($argv) == 0) exit;
foreach ($argv as $arg)
    echo $arg; // 
Menu