Count Total Code Lines in Project Using Sublime Text Editor

Go to Menu or Right Click The Project Directory:Find -> Find in Files (windows: ctrl+shift+f) Switch on the reg_ex button (windows: alt+r) Find: ^.\S+.$ Where: c:\your_folder\,.php,.js,.inc,.html,.htm,.scss, -/folder_to_exclude/, -*.min.js Then click on the Find button Be careful to not click on Replace!!!On the bottom line of your search result you’ll find something like:7061 matches across 154 … Read more

Save Array in MySQL Database

You can store the array using serialize/unserialize. With that solution they cannot easily be used from other programming languages, so you may consider using json_encode/json_decode instead (which gives you a widely supported format). Avoid using implode/explode for this since you’ll probably end up with bugs or security flaws. To convert an array (or any object) into a string using PHP, call the … Read more

Categories PHP

Subtract 1 Week with PHP

For Subtract 1 week use this code: Please replace your date with ‘2012-12-12‘. You Can Also Use This Code for Subtract 1 Week: Please replace your date with ‘2012-12-12‘.

Categories PHP

Subtract day with PHP

For Subtract 1 day use this code: please replace your date with ‘2012-12-12‘. For Subtract 7 days use this code: please replace your date with ‘2012-12-12‘. For Subtract 30 days use this code: please replace your date with ‘2012-12-12‘.

Categories PHP

Mathematical Operations In PHP

With PHP we can easily manage mathematical operations in a very intuitive way. In this lesson of our guide, we will learn how to count within our applications. Mathematical Operators Of PHP The main mathematical operators foreseen by the PHP syntax are: Operator Operation + Addition – Subtraction * Multiplication / Division % Module The only mathematical operator to request … Read more

Categories PHP
deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş