Heim  >  Fragen und Antworten  >  Hauptteil

Bezüglich PHP-Zuweisungsproblemen

FPublic-Funktionen doenroll ($ phone = null) {


static $ code = 5050;

if ($ Phone! = Null) {

$ text = null;
$ code = RAND (1111, 9999);
} Was mit dem Wert von

在if里面对$code赋值 上面的static $code的值并不会变,这是为什么,如果在if里面要修改

statischer $code


zu tun hat

一個人去看海一個人去看海1968 Tage vor845

Antworte allen(1)Ich werde antworten

  • 一個人去看海

    一個人去看海2019-05-01 12:12:03

    找到问题了 赋值是没有错的 是if没进去

    Antwort
    0
  • StornierenAntwort