PHP Classes

File: tests/toSeconds.php

Recommend this page to a friend!
  Classes of Ali YILMAZ   Mind Framework   tests/toSeconds.php   Download  
File: tests/toSeconds.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Mind Framework
Framework that implements several design patterns
Author: By
Last change:
Date: 1 year ago
Size: 609 bytes
 

Contents

Class file image Download
<?php
require_once ('../src/Mind.php');

$Mind = new Mind([
   
'db'=>[
       
'drive' => 'mysql', // mysql, sqlite
       
'host' => 'localhost',
       
'dbname' => 'mydb', // mydb, app/migration/mydb.sqlite
       
'username' => 'root',
       
'password' => '',
       
'charset' => 'utf8mb4'
   
]
]);

echo
'2:2 - 7320<br>';
echo
$Mind->toSeconds('2:2');

echo
'<hr>';

echo
'2:2:0 - 7320 <br>';
echo
$Mind->toSeconds('2:2:0');

echo
'<hr>';

echo
'02:02 - 7320 <br>';
echo
$Mind->toSeconds('02:02');

echo
'<hr>';

echo
'02:02:00 - 7320 <br>';
echo
$Mind->toSeconds('02:02:00');