Warum kann Variable nicht mit einer Zahl beginnen?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Warum kann Variable nicht mit einer Zahl beginnen?

by Anonymous » 02 Feb 2025, 20:05

Ich arbeite in PHP, ich muss Variablen nach Abfolge definieren, um in MySQL zu speichern. Sowohl Feldname als auch Variablenname müssen in meinem Fall gleich sein.$1 OR $2 etc
< /code>

Wenn nicht warum nicht und wenn ja, warum ja? >
$id = 0;
$6 = $_REQUEST['6'];
$7 = $_REQUEST['7'];
$8 = $_REQUEST['8'];

$xary = array('6','7','8','9')

$oAppl->save_record("tablename", $id, "id");
< /code>

Was mir Fehler gibt. /P>

Top