[PHP] php is case sensitive?

Pagina: 1
Acties:

  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
ik zal wel even in de war zijn.

op de ze2 list slaat men elkaar half dood over de discussie of de nieuwe php engine case sensetivity moet gaan onder steunen in de toekomst en ik loop tegen het volgende op:
code:
1
2
3
4
$bLa="hello";

echo "small-l=[" . $bla . "]";
echo "<br>big-L=[".$bLa . "]";

dit geeft als output:
small-l=[]
big-L=[hello]
wat heb ik nou aan mijn fiets hangen dan?

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


  • WouZz
  • Registratie: Mei 2000
  • Niet online

WouZz

Elvis is alive!

Namen van variabelen zijn case-sensitive. Namen van functies en classes (nog) niet...

On track


Verwijderd

Ik vindt dat ze alles, dus ook functies en classes case sensitive moeten maken. Op die manier is je code veel overzichtelijker :D
PHP:
1
<?function printSomethingCool(){  echo "something cool";}printsomethingcool();printSOMETHINGcool();PRINTsomeTHINgCoOl();?>

Die doet allemaal hetzelfde maar het is t****g onoverzichtelijk... :(

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

Er is ook niets wat je ervan weerhoudt om wel netjes consequent te zijn in je CaPiTaLiZaTiOn.

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz


  • GiLuX
  • Registratie: Juni 1999
  • Laatst online: 12-11-2025
Op dinsdag 11 juni 2002 17:00 schreef WouZz het volgende:
Namen van variabelen zijn case-sensitive. Namen van functies en classes (nog) niet...
ah, gelukkig, dan was ik dus toch in de war.

btw,
sinds welke versie is dit dan?

"I disagree with what you are saying, but I will defend to the death your right to say it." -- not clear who


Verwijderd

Op dinsdag 11 juni 2002 17:05 schreef drm het volgende:
Er is ook niets wat je ervan weerhoudt om wel netjes consequent te zijn in je CaPiTaLiZaTiOn.
Klopt, maar toch is het handig om het verplicht te maken om op die manier de mensen die niet consequent zijn te verplichten om wel consequent te zijn.. :)

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

ik heb nog nooit code gezien die niet consequent was, maar wel 'goede' (lees:handige, bruikbare) code...

daar hoef je het denk ik niet voor te doen.

edit: beetje brakke multi-interpretabele zin

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz

Pagina: 1