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 : 33 years, 2 month, 18 days Ma numesc Delia si am 36 de ani


Afisare varsta in functie de data 09.23.23:

Your age : 33 years, 2 month, 18 days


Your age : 68 years, 1 month, 7 days


Your age : 69 years, 6 month, 22 days


Your age : 32 years, 11 month, 26 days
aaa
bbb
ccc
ddd
eee