Apr 07, 2011 — 5 comments
We can get current server path or current working directory in PHP using getcwd function. You can change current working directory using chdir function.
We will be looking at an interesting topic today: Difference Between Arguments And Parameters. No doubts most of us do use these two terms interchangeably while working with functions. New to functions? read my other tutorial Functions In PHP. These two terms can be confusing and are mostly used in place of the other, but as a programmer you should be able to identify and use your terms properly.So what are arguments and parameter?
Today we will be taking a quick look at Single vs Double Quotes In PHP. This is going to be a very brief tutorial. Most people (myself inclusive) misuse this quotes. Now that I understand where and when they are being used, I decided to share it with you guys.
A handy PHP script which allows you to count the number of likes for a specific Facebook page
Functions in PHP are block of codes or statements that can be executed repeatedly from any point in a script after it has be declared. A function is ignored until when called in a script. Using functions, you can write codes that are readable and reusable. Functions also helps to modularize your code.
Streamlining your web development workflow is a gift that will pay off every day! Read this brief post to get a few tips for making your next project run smoothly while garnering some with massive time savings.
For both style and seo reaasons, having bold first paragraph content in your wordpress website is a smart feature. While searching for a quick and easy to use method of implementing this feature, I came across a handy PHP snippet that makes your first paragraph bold or larger. This PHP snippet works alongside CSS which allows you to style your first paragraph anyway you want!
PHP Array Length can be measured by using either count function or sizeof function in php. both functions will work same, sizeof function is alias of count.
The basename($_SERVER[‘PHP_SELF’]) function is used to get current pagename only.
A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document. On servers with shorthand support enabled you can start a scripting block with <? and end with ?>;.
Help us out! More and more tutorials are submitted to Good-Tutorials each day. We could use your help with finding good tutorials. Mind lending a hand?