Tegnsætning i PHP
Givet en streng:
<?php
$str = 'php';
?>
Lav følgende streng ud af denne streng:
'PHP'
Givet en streng:
<?php
$str = 'PHP';
?>
Lav følgende streng ud af denne streng:
'php'
Givet en streng:
<?php
$str = 'london';
?>
Lav følgende streng ud af denne streng:
'London'
Givet en streng:
<?php
$str = 'London';
?>
Lav følgende streng ud af denne streng:
'london'
Givet en streng:
<?php
$str = 'london is the capital of great britain';
?>
Lav følgende streng ud af denne streng:
'London Is The Capital Of Great Britain'
Givet en streng:
<?php
$str = 'LONDON';
?>
Lav følgende streng ud af denne streng:
'London'
Givet en streng:
<?php
$str = 'привет';
?>
Lav følgende streng ud af denne streng:
'ПРИВЕТ'
Givet en streng:
<?php
$str = 'ПРИВЕТ';
?>
Lav følgende streng ud af denne streng:
'привет'