Search
 
SCRIPT & CODE EXAMPLE
 

PHP

creating unique number adding zero 0 in number

Use sprintf()
sprintf('%08d', 1234567);
Alternatively you can also use str_pad:
str_pad($value, 8, '0', STR_PAD_LEFT);
Comment

PREVIOUS NEXT
Code Example
Php :: symony type request 
Php :: mod_fcgid: stderr: PHP Fatal error: Maximum execution time of 0 seconds exceeded in /home/circusconcepts/public_html/shop/system/library/PHPExcel/Shared/String.php on line 576 
Php :: PHP strcasecmp — Binary safe case-insensitive string comparison 
Php :: Laravel Cache store [none] is not defined. 
Php :: Dorf SMS Plugin 
Php :: datetime-local laravel migration data type 
Php :: php update json file 
Php :: php runden auf 2 stellen 
Php :: how to print image just on side where upload php 
Php :: php code for adding dara 
Php :: file viewer codeigniter 
Php :: cf7 first_as_label 
Php :: checks whether the session is set or not, if not it will redirect the user to login page. 
Php :: get base class name laravel 
Php :: php convert datetime to timestamp 
Php :: fxcjahid 
Php :: phpunit 7 requirement php 
Php :: laravel seed table 
Php :: when WYSIWYG fields remove paragraph tag 
Php :: Target class [HomeController] does not exist. 
Php :: Type cast using int php 
Php :: how can we manage category and product in laravek 
Php :: contact form dropdown from post 
Php :: ipay generate hash id 
Php :: how to override category product from seo title and description 
Php :: Ciclo for PHP ejemplos 
Php :: overwrite existing key value pair php 
Php :: php move uploaded file 
Php :: hide .php 
Php :: php send values in $_SESSION to other page 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =