zzzzzz/home/stiripod/ioanad5.sagesvision.com/wp-content/themes/ioanad5/test.php

Header

Homepage

Pagina Test

Elimina spatiile libere dintr-un string cu: str_replace(" ", "", $var);

Ioana - Delia
Ioana-Delia
0755 578 038

Scrie cod html in cod php cu: htmlspecialchars($text);

This text is bold.
This text is <b>bold</b>.

<div class='numeclasa'>acesta este un div</div>

Variabile globale/superglobale in php:

  • returneaza linkul paginii curente cu: $_SERVER[ 'SCRIPT_URI']
    https://ioanad5.sagesvision.com/test/

  • /index.php

  • /home/stiripod/ioanad5.sagesvision.com/index.php

  • /index.php

ACF - teste

Test 1

Animal domestic

taur

Animal salbatic

flamingo

Test 2

gasca
caine

Test 3 - afisare animale domestice cu doua picioare (denumire + img)

rata gasca gaina prepelita


Diferenta dintre ghilimele duble si simple:

Aceasta este o carte - text + variabila in ghilimele duble
Aceasta este o $carte - text + variabila in ghilimele simple


Afisari variabile (cu array)

Buna ziua, vizitatorule
Chevrolet
TGV
TGV

Zilele lucratoare sunt: luni marti miercuri joi vineri

My age : 31 years, 4 month, 22 days Ma numesc Delia si am 36 de ani


Afisare varsta in functie de data 11.27.21:

Your age : 31 years, 4 month, 22 days


Your age : 66 years, 3 month, 11 days


Your age : 67 years, 8 month, 26 days


Your age : 31 years, 2 month, 0 days
aaa
bbb
ccc
ddd
eee