Nasıl bütün php dosyası (iç Vaka) olarak kabul edilecektir global bir değişken tanımlanabilir mi?

0 Cevap

How can defined global variable ($begin) that will be recognized in all php file? (please dont change the case code only add, because I working on big project that i can only add code)

Case:(problem $begin not recognized in the end of the file)

<?php $begin=time()?>
  <div>new name</div>
<?php   echo time()-$begin; ?>

Edit: I have stupid mistake in file, now the code works, thanks

Teşekkürler

0 Cevap