Types in Typescript Typescript is a strongly typed language, whereas javascript is not. A variable which has a value defined as a string can be changed to a number without any issues in Javascript. The same is not tolerated in typescript. In typescript, the type to a variable is defined at the start only and …
What is Typescript ?  Typescript is a superset of JavaScript. It is an open source language developed by Microsoft which statically compiles the code to JavaScript that can easily run in a browser or in Nodejs. All the latest features released for ECMAScript are supported in typescript and in addition to it Typescript has its …
In this example, we will remove array elements by keys array in php. we can delete multiple keys from array php. basically we will unset multiple keys from php array. if you see in php documentation there are not available directly remove multiple keys from php array. But we will create our own php custom …
We can create our own php.ini file in godaddy cpanel and other hosting too. We can increase upload_max_filesize, post_max_size, max_file_uploads, memory_limit, max_execution_time etc in php ini file in cpanel. So basically, Almost server like godaddy server, a2hosting server, hosting raja server that provide basic configuration in default php ini file. so some time we need …
Do you want to calculate difference between two dates in PHP? I mean difference between two dates in days, months, years using php. if yes than i will show you to PHP get difference between two dates using strtotime(), abs() and floor(). We may sometime require to get difference between in PHP for your application, …
Git Commands git config Usage: git config –global user.name “[name]” Usage: git config –global user.email “[email address]” This command sets the author name and email address respectively to be used with your commits. ———————————————————- git init Usage: git init [repository name] This command is used to start a new repository. ————————————————– git clone Usage: git …
git config Usage: git config –global user.name “[name]” Usage: git config –global user.email “[email address]” This command sets the author name and email address respectively to be used with your commits.
Open crontab in your terminal:EDITOR=gedit crontab -e Add your cron settings at the end of your file (we are setting cron to be execute in every 2 minute in our example):*/2 * * * * /usr/bin/php -q /path/to/phpfile.php > /dev/null Save your cron file and run:sudo service cron restart
Definition and Usage The date() function formats a local date and time, and returns the formatted date string. Syntax -:  date(format,timestamp); Parameter  Description format Required. Specifies the format of the outputted date string. The following characters can be used: d – The day of the month (from 01 to 31) D – A textual representation …
sort() – sort arrays in ascending order. asort() – sort associative arrays in ascending order, according to the value. ksort() – sort associative arrays in ascending order, according to the key. arsort() – sort associative arrays in descending order, according to the value. rsort() – sort arrays in descending order. krsort() – sort associative arrays …
PAGE TOP
error

Enjoy this blog? Please spread the word :)

RSS
Follow by Email