Sometimes it's desirable to change a style of the first and/or last elements in a container. You can do this by manually applyin…
By apphp-snippets
You may add rounded corners to your CSS3-based elements, like a border or button. You can change the radius to increase or decre…
Most today's web browsers like Firefox (Ctrl+D), Opera (Ctrl+T) and IE (Ctrl+D) provide a keyboard shortcuts to enable users boo…
You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites wi…
Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechan…
You may create a back button like your browser has. The following script allows the visitor to press a button and returns the hi…
You may retrieve all needed file path data using PHP's built-in function pathinfo. You don't need to create your own functions o…
Sometimes you need to generate passwords for customers automatically when a new account is created. This code allows you choose …
Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than the original data.
This is a very common PHP question of HOW TO remove last character from string in PHP. Find below some ways how to delete last c…
Want to share your source code? Create your account and join our community!