Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php string nach zeichen zerlegen


<?php
// Beispiel 1
$pizza  = "Teil1 Teil2 Teil3 Teil4 Teil5 Teil6";
$teile = explode(" ", $pizza);
echo $teile[0]; // Teil1
echo $teile[1]; // Teil2

// Beispiel 2
$data = "foo:*:1023:1000::/home/foo:/bin/sh";
list($user, $pass, $uid, $gid, $gecos, $home, $shell) = explode(":", $data);
echo $user; // foo
echo $pass; // *

?>

Comment

PREVIOUS NEXT
Code Example
Php :: sorting sql query array by column key php 
Php :: a facade root has not been set laravel 7 
Php :: php loop 100 times 
Php :: send email in php 
Php :: laravel 5 use env variable in blade 
Php :: laravel invoice number generator 
Php :: laravel get last id 
Php :: phpmyadmin username password check 
Php :: laravel display old value 
Php :: php new object 
Php :: laravel insert array 
Php :: laravel return view with multiple variable 
Php :: php remove control characters from string 
Php :: php check if a url exists 
Php :: laravel migration alter column unique 
Php :: ERROR: Could not enable dependency mpm_prefork for php7.4, aborting 
Php :: how to set time ago in php 
Php :: php strftime datetime 
Php :: php xml string 
Php :: check if file empty php 
Php :: Syntax error or access violation: 1071 La clé est trop longue. Longueur maximale: 1000" 
Php :: php loop array 
Php :: Clear and delete the folder after the time specified in php 
Php :: how to print string plus variable in php 
Php :: php function crop image 
Php :: laravel pagination problem in blade 
Php :: php date in italiano 
Php :: admin-ajax.php 400 (bad request) 
Php :: how to include file in php 
Php :: convert_uudecode (PHP 5, PHP 7, PHP 8) convert_uudecode — Decode a uuencoded string 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =