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

How to get the visitor IP in the PHP

16 February 2022

Online Shopping Portal Pro Version using PHP and MySQL

7 March 2022

e-Diary Management System using PHP and MySQL

3 April 2022

Recent Posts

  • ‘Music MiniPlayer’ for Mac offers iTunes 10 nostalgia with modern twists
  • Facebook for iOS dark mode interface disappears for many users
  • Review: HidrateSpark Steel water bottle with Apple Health integration
  • WhatsApp for iOS improving Reactions feature in new update
  • Apple @ Work: A Time Machine in the Cloud would drive Managed Apple ID usage

Popular Categories

  • Adobe Photoshop (87)
  • Android (100)
  • Angular (13)
  • Apple (2,224)
  • Bootstrap Framework (6)
  • C# (5)
  • Css (109)
  • Drupal CMS (339)
  • IT Development (137)
  • Java (3)
  • Javascript (26)
  • Joomla (39)
  • jQuery (280)
  • Laravel (108)
  • Magento (15)
  • Mysql (165)
  • PHP (42)
  • PostgreSQL (8)
  • Python (81)
  • Reacte Native (5)
  • Ruby (5)
  • Web development (98)
  • Wordpress (28)

Categories

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

Latest News

  • ‘Music MiniPlayer’ for Mac offers iTunes 10 nostalgia with modern twists

    28 May 2022
  • Facebook for iOS dark mode interface disappears for many users

    28 May 2022

Contact Us

Address: chamber no 1406 Rohini
court New
Delhi 110088

Email: deloperblog87@gmail.com

© 2022 All rights reserved.