Warum kann Variable nicht mit einer Zahl beginnen?Php

PHP-Programmierer chatten hier
Anonymous
 Warum kann Variable nicht mit einer Zahl beginnen?

Post by Anonymous »

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>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post