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 substring after character php

<?php
$my_url = 'http://www.example.com/5478631';
echo substr($my_url, strrpos($my_url, '/' )+1)."
";
?>
  // print: 5478631
Comment

PREVIOUS NEXT
Code Example
Php :: each in laravel 
Php :: php mysqli fetch single row 
Php :: how to limit word in php 
Php :: laravel error storage permission denied 
Php :: Composer Fatal error: Call to undefined function SymfonyPolyfillMbstringiconv() in phar 
Php :: wordpress custom post type add post_tag 
Php :: laravel model query limit 
Php :: laravel get timezone from ip address 
Php :: php fix array index 
Php :: read pdf text in php 
Php :: storage in laravel 
Php :: disable laravel passport 
Php :: add class to body class wordpress 
Php :: php laravel intervention base64 to image save 
Php :: create a modal livewire laravel 
Php :: how remove empty value in array php 
Php :: array_fill php 
Php :: wordpress exclude current post from loop 
Php :: foreign key laravel migration 
Php :: pluck array in laravel 
Php :: create new laravel 9 project 
Php :: set session in laravel 
Php :: laravel createmany example 
Php :: insert data using mysqli in php 
Php :: Type cast using double php 
Php :: get database columns laravel 
Php :: php read zip file without extracting 
Php :: What does "as" keyword mean in Laravel route ? 
Php :: tinyinteger laravel +size 
Php :: convert text file to json php 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =