how to display cash number format in a php code?
Please give an example.
cash_system value suppose to show for example. 994.00 but instead it shows 994.
echo "Cash:", " ". $info['cash_system'];
Please see the following link.
will this work with my code or do i need to insert that number format under it?
echo "Cash:", " ". number_format($info['cash_system'], 2, '.', '');
my go to for formatting cash is: echo sprintf("%01.2f",$someFloat);
thanks this works. This will be marked as solved! Thanks everyone!
I'm having a problem with the program i did.
The problem is ;
It says that the conversion ( for the grade part , the ones with '+' and '-') ...
I have recently been using XAMPP for dev. Although I'm new to XAMPP, the recent issue sprung up surprisingly, the simple script running a day before.
The script is just ...
Im trying to make a program that shifts all my elements of array to the right by one and move the last element
into the first position.how would i move ...