Nested Ternary Operation Example

nested ternary operation example

<?php //variable declaration $time = 10; //Normal If/Else Operation if ($time == 10) { echo "if/else good morning!"."nn"; } elseif ($time == 20) { echo "if/else good day!"."nn"; } else { echo "if/else good night!"."nn"; } //Nested Ternary Operation $data = ($time==10) ? "Ternary good morning!" : (($time==20) ? "Ternary good day!" : "Ternary good night!"); echo $data."n"; ?>

Whatsapp Will Stop Working on Millions of Phone


A new WhatsApp update will prevent the popular messaging app from working on millions of phones from 1 January 2021.  Older Android and iPhone devices will no longer support the latest version of the app, forcing owners to either update their mobile operating system or buy a new smartphone.  Any iPhone not running iOS 9 or newer, or any phone not...

Composer want Github access with Personal Access Token


Step 1: Create a personal access token Go to and generate a new token. You will need to specify all repo scopes. Finally, hit Generate Token to create the token. Copy this, as well as need it in the next step. Step 2: Configure the Composer to use your personal access token Run the following from the command line: composer config -g XXXXXXXXXXXXXXXXXXXXXXX You're all set! From now on, a composer...

Removing public and index.php from URL in Codeigniter-4

How to Remove index.php from URL in Codeigniter 4

Step 1: Open App.php File from the Location: c:/xampp/htdocs/your_project_name/app/Config/App.php public $baseURL = 'http://localhost:8080';   To public $baseURL = 'http://localhost/your_project_name/'; Step2: public $uriProtocol = 'REQUEST_URI';  To  public $uriProtocol = 'PATH_INFO'; Step3: In public/ directory, copy index.php and .htaccess to your root project directory. Step4: Open index.php from project root directory,  and edit the following path: $pathsPath = FCPATH . '../app/Config/Paths.php';  To $pathsPath = FCPATH . 'app/Config/Paths.php'; if its doen't work also...