PHP-de san formatirleme

number_format
Задание 1

Setir berlen:

php<?php
  $str = '12345678';
?>

Ondan şeýle setir ýasalyň:

php'12 345 678'
Задание 2

San berlen:

php<?php
  $number = 9876543.21;
?>

Sany formatirleň, onuň müňler bölüji (boşluk) we drowan böleginde iki belgi bolmaly:

php'9 876 543.21'
Задание 3

San berlen:

php<?php
  $price = 1234.5678;
?>

Sany müňler bölüji bilen (nokat), drowan böleginde iki belgi bilen we walýuta nyşany bilen formatirleň:

php'€1.234,57'