You can reset the index of an array in PHP very easily, index is nothing but the element stored place. The array index is also called as array keys. In Array the index will start with zero. (more…)
You can remove the Non ASCII or Non printable characters in string using the php regular expression. Follow the below code to how to remove the special characters from the string other than the ASCII. (more…)
Get the Facebook Like Share Comment Count for the Given URL in PHP using the Facebook Query Language (FQL). Sometimes we need to find like,share,comment count for show a snippet at out web page.By using the following code you can get the facebook fan page count too.The following code very simple and just pass the url of the web page to function, then it will return you the values in the json format.
You can Generate XML file from PHP array using SimpleXMLElement in php language, which will be easy to read data from the xml formatted data.just take the whole list to an array & by using SimpleXMLElement the data will generated in an xml format. (more…)
Today I will show you how to fetch facebook Open Graph(OG) meta tags with php script. Open Graph meta tags are used in html page of website to generate previews of content.when your page is shared on facebook it will capture the og meta tags and generate the snippet.Meta tags are added inside the head tag. (more…)
Google URL Shortener API provide a service to short the long urls to short and vice versa. Get an API key from google to use this api by signup. Here i am giving a class to perform shorten url function. Just copy and paste the API Key in the following code & Make sure that curl is enabled in PHP. Then the script will send a curl request to google api and shorten or expand the given url.
Few days back I installed Adobe Dreamweaver in my PC, when i am using dreamweaver php code hints not working, then I searched for the solution over the internet I just found one. Just follow the below steps to enable the code hints.
The PHP date() function formats the date and time as per given input parameter. You can convert any time format to required format using strtotime() function. strtotime() function rerurns UNIX Timestamp, which is easy to covert to various different date formats. (more…)
Ajax is web development technology used to build asynchronous calls from client to server.