PHP Classes

File: mixed_return_types.php

Recommend this page to a friend!
  Classes of Allan Kibet   Learn New PHP 8 Features   mixed_return_types.php   Download  
File: mixed_return_types.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Learn New PHP 8 Features
Examples of how to use PHP 8 new features
Author: By
Last change:
Date: 2 years ago
Size: 112 bytes
 

Contents

Class file image Download
<?php

function get_value(): mixed {
    return
null; // You can return any type here
}

var_dump(get_value());