Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php get first character of string

$firstStringCharacter = substr("hello", 0, 1);
Comment

first name of string php

$words = explode(" ", $string);

$firstname = $words[0];
$lastname = $words[1];
$third_word = $words[2];
Comment

php get first word of string

$value = "Test me more";
echo strtok($value, " "); // Test
Comment

return first name php

$firstname =  strstr("Full Name", " ", true);
Comment

PREVIOUS NEXT
Code Example
Php :: php get day number 
Php :: codeingiter 3 where in 
Php :: get country from ip address 
Php :: how to get a whole number from decimal in php 
Php :: create a wp plugin 
Php :: get data in descending order in laravel 
Php :: laravel redirect with message to section 
Php :: how to echo only certain character number in php 
Php :: laravel iteration 
Php :: ternary operator in php 
Php :: how to set date in php 
Php :: utf8 php 
Php :: get text field value in php 
Php :: how to get data from a table in laravel 
Php :: alerta con php 
Php :: remove item from collection 
Php :: php absolute value 
Php :: for each php 
Php :: php sort multidimensional array by value 
Php :: check if object has method php 
Php :: left join laravel 
Php :: php array_filter 
Php :: php keys of array 
Php :: ACF Photo Gallery Output 
Php :: PHP validation/regex for URL 
Php :: symfony see all make commands 
Php :: laravel make component 
Php :: subtract string php 
Php :: read csv file in php 
Php :: php credit card validation 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =