• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Show date difference as "20" instead of "20 years ago"

phplaravelphp-carbon


PHP Snippet 1:

{{Carbon::parse($etudiant->date_naissance)->diffInYears()}}

Related Snippets

Add Class in html Dynamically in PHP

Symfony Mercure "Failed to send an update"

(Laravel) How to delete multiple models including optional relationships?

How to create laravel storage symbolic link for production or sub domain system?

How to add automatically collapse/expand in content wordpress (single.php)?

How can I create a Download Page with post php method?

XDebug not working in VScode for php debugging

Testing subscription renewals on Stripe

Remove country code from phone number?

How to write PHP in XSLT

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

Creating live search with AJAX and CodeIgniter

Laravel Nova, route not found

Check if a string contain multiple specific words

Xdebug in Laravel is not working with VSCode

About Contact Privacy policy Terms and conditions