Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
backend
php
oop
namespaces
full_example
index2_try_catch.php
index2_try_catch.php
<?php namespace libra1; //code ovog fajla nalazi se u libra1 namespace-u include("./inc/spl_autoload_exception.inc.php"); use \libra1\libra1_1\SubJedanf; //isto kao use \libra1\libra1_1\SubJedan as SubJedan; try { // /** ./libra1/libra1_1/subjedan.class.php sa use**/ $obj=new SubJedanf; echo $obj->sv; $obj->metoda(); } catch (\Exception $e) { echo $e->getMessage(); } ?>
Reload page
Preview
W3C validation
Edit Code