PHP Readonly -FunktionsparameterPhp

PHP-Programmierer chatten hier
Guest
 PHP Readonly -Funktionsparameter

Post by Guest »

Ich möchte so etwas tun: < /p>

$variable = ...;
$result=exampleFunction($variable);

exampleFunction(readonly $variable)
{
...
}
< /code>

Ich meine, ich möchte nur Parameter in der Funktion lesen,
ist möglich in PHP? < /p>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post