Skip to content
Developer Blog

Developer Blog

  • Web development
  • Laravel
  • WordPress
  • Magento
  • IT Development
    • Angular
    • Python
    • Ruby
    • jQuery
    • Javascript
    • PHP
    • Css
    • C#
    • Android
    • Java
    • Reacte Native
  • Drupal CMS
  • Bootstrap Framework
  • Adobe Photoshop
  • Apple

How to get last character of a string in PHP?

PHP
11 March 2022
How to get last character of a string in PHP?

The substr() function returns a part of a string.
Syntax
<?php
$string=”Welcome to PHPGURUKUL”;
echo substr($string,-1);
?>

OUTPUT:
L

The post How to get last character of a string in PHP? appeared first on PHPGurukul.

Post navigation

How to watch The Last Days of Ptolemy Grey starring Samuel L. Jackson
How to repeat a string to a specific number of times in PHP?

Related Posts

Blood Donor Management System Using CodeIgniter

Blood Donor Management System Using CodeIgniter

11 January 2022developerblog87

Blog Management System using PHP and MySQL

31 March 2022

News Portal Using CodeIgniter

26 January 2022

Recent Posts

  • Guest Blog: Updating My Website Portfolio for 2023 by Commercial and Editorial Photographer Luke Copping 
  • Expand/Collapse Content With Smooth Transitions – jQuery vcollapse
  • How to create a calculator in PHP
  • Lightweight Alert & Confirmation Popup Plugin – jQuery Stack Alert
  • Passenger sees his lost wallet fly to different cities thanks to AirTag after airline says it couldn’t find it

Popular Categories

  • Adobe Photoshop (248)
  • Android (245)
  • Angular (18)
  • Apple (6,023)
  • Bootstrap Framework (14)
  • C# (5)
  • Css (251)
  • Drupal CMS (953)
  • IT Development (284)
  • Java (3)
  • Javascript (60)
  • Joomla (82)
  • jQuery (617)
  • Laravel (302)
  • Magento (20)
  • Mysql (552)
  • PHP (82)
  • PostgreSQL (17)
  • Python (215)
  • Reacte Native (14)
  • Ruby (30)
  • Web development (255)
  • Wordpress (67)

Categories

  • Adobe Photoshop
  • Bootstrap Framework
  • Drupal CMS
  • IT Development
  • Joomla
  • Laravel
  • Web development

Latest News

  • Guest Blog: Updating My Website Portfolio for 2023 by Commercial and Editorial Photographer Luke Copping 

    1 February 2023
  • Expand/Collapse Content With Smooth Transitions – jQuery vcollapse

    1 February 2023

Contact Us

Address: chamber no 1406 Rohini
court New
Delhi 110088

Email: deloperblog87@gmail.com

© 2022 All rights reserved.