Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php foreach string char

//Split int char array
$chars = str_split($str);

//Loop each char
foreach($chars as $char)
{
    // your code
}
Comment

PREVIOUS NEXT
Code Example
Php :: how to remove index.php in codeigniter 
Php :: category name wp query 
Php :: check if a string contains a substring php 
Php :: laravel format number blade 
Php :: laravel eloquent only today 
Php :: trim comma from variable in php 
Php :: laravel publish email template 
Php :: php sec into date time 
Php :: make a forign key in migrations using laravel 8 
Php :: Add 2 days to the current date in PHP 
Php :: php regex remove file extension 
Php :: php json key value loop 
Php :: laravel validation min string length 
Php :: remove last letter php 
Php :: session has laravel blade 
Php :: print session in laravel 
Php :: php date timestamp now 
Php :: wp max revisions 
Php :: codeigniter get user ip 
Php :: php date + 1 year 
Php :: read key value json php 
Php :: hash a password php 
Php :: asia time zone in php 
Php :: livewire pagination bootstrap 
Php :: php artisan migrate nothing to migrate 
Php :: db symfony 
Php :: carbon now format 
Php :: how add confirmation box in php before deleting 
Php :: php get string between two strings 
Php :: print query in laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =