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 : 32 years, 1 month, 12 days Ma numesc Delia si am 36 de ani


Afisare varsta in functie de data 08.17.22:

Your age : 32 years, 1 month, 12 days


Your age : 67 years, 0 month, 1 days


Your age : 68 years, 5 month, 16 days


Your age : 31 years, 10 month, 20 days
aaa
bbb
ccc
ddd
eee