Source: XDA

With the Samsung Galaxy S6, S6 Edge, and LG G4, 2015 looks to be the year of great cameras on smartphones. Today we will be looking at the LG G4. At first glance, the device looks a lot like the G3 from last year. Add to that the slight curve on the display and you may think it’s the LG G Flex 2’s cousin. Ultimately, this is a device that packs a great set of features. These features are sure to make you a fan right out of the box. ...

Continue reading

Introduction For many people, the main reson for learning a scripting language like PHP is because of the interaction with databases it can offer. In this tutorial I will show you how to use PHP and the MySQL database to store information on the web and include it into your website. Before you read this tutorial you should have at least a basic knowledge of how to use PHP. If you do not yet know PHP, I suggest that you read our PHP tutorial before continuing. Why Would I Want A D ...

Continue reading

Source: sitepoint

In parts 1 and 2 of this series, we looked at PHP namespace basics, the use operator, and name resolution. In this final article we discuss some of the more advanced namespace options. The __NAMESPACE__ Constant __NAMESPACE__ is a PHP string that always returns the current namespace name. In the global space it will be an empty string. <?php namespace AppLib1; echo __NAMESPACE__; // outputs: AppLib1 ?> The value has obvious benefits during debugg ...

Continue reading

Source: sitepoint

In part 1, we discussed why PHP namespaces are useful and the namespace keyword. In this article, we examine the use command and the way PHP resolves namespace names. For the purposes of this example, we will define two almost identical code blocks; the only difference is their namespace: lib1.php: <?php // application library 1 namespace AppLib1; const MYCONST = 'AppLib1MYCONST'; function MyFunction() { return __FUNCTION__; } ...

Continue reading