Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get the string after a character in php

$data = "123_String";    
$whatIWant = substr($data, strpos($data, "_") + 1);    
echo $whatIWant;
Comment

get words after string in in php

$string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla felis diam, mattis id elementum eget, ullamcorper et purus.";
$prefix = "Nulla";
$index = strpos($string, $prefix) + strlen($prefix);
$result = substr($string, $index);
Comment

PREVIOUS NEXT
Code Example
Php :: laravel count group by date 
Php :: eloquent delete all where 
Php :: merge two arrays one as key to another php 
Php :: laravel sortby varchar date 
Php :: auth laravel 9 
Php :: datetime get month php 
Php :: get single column value in laravel eloquent 
Php :: laravel loop variable 
Php :: set session after login with laravel 
Php :: yyyymmdd to yyyy-mm-dd php 
Php :: How to get a WordPress post by slug 
Php :: add 1 day php datetime 
Php :: How to request and display data from db in larave 
Php :: foreach stdclass object php 
Php :: remove last all special character from string php 
Php :: creer un modele laravel 
Php :: send value from one page to another in php 
Php :: how to find total rows fetched php pdo 
Php :: eloquent get only some columns 
Php :: php date first day of month and last month 
Php :: hide error in php 
Php :: php get IP country 
Php :: laravel get items by ids 
Php :: $errors show this error in laravel 
Php :: delete in crud php 
Php :: how make factory and seeder in laravel 8 
Php :: php import script 
Php :: how to send data from one website to another in laravel 
Php :: array_diff 
Php :: php array check value exists 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =