• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
logo

Tutsplanet

Free Technical and Blogging Resources

  • Home
  • Web Hosting
  • Programming
  • Plugins
  • Write For US
  • News
  • About Us
  • Snippets

PHP

How to Remove Multiple Elements by Key in PHP Array?

Feb 11, 2021 by Editorial Staff

Today’s article, we will remove multiple elements by key in a PHP array. Using PHP we can delete multiple keys from an Array. In PHP there is no built in method to achieve this, but we can combine several PHP functions to achieve this. In this article we will be demonstrating two methods to remove […]

Filed Under: Programming Tagged With: PHP

Basic PHP File Handling — Create, Open, Read, Write, Append, Close, and Delete

Mar 15, 2018 by Editorial Staff Leave a Comment

In this tutorial you will learn basic PHP File Handling — Create, Open, Read, Write, Append, Close, and Delete

Filed Under: Programming Tagged With: PHP

Converting
into a new line for use in a text area

Mar 4, 2018 by Editorial Staff Leave a Comment

Often times we have deal with br tags in the text area HTML element. Most of the time this occur when we print the database stored values in textarea.

Filed Under: Programming Tagged With: PHP

PHP Fatal error: Call to undefined function mssql_connect() while connecting in PHP

Apr 10, 2017 by Editorial Staff Leave a Comment

PHP Fatal error: Call to undefined function mssql_connect() error popping out when connecting through MSSQL functions in Ubuntu server Answer In Ubuntu Just you need to install php5-sybase That’s it. Test with mssql_connect.   You can verify this in PHP info file    

Filed Under: General Tagged With: PHP

Create Simple Complete Login Script in PHP and MySql

Apr 1, 2017 by Editorial Staff 4 Comments

This is a simple and complete login system in PHP and MySql. Most of the web applications it is necessary to have an authentication system. Latest frameworks such as Laravel, Symfony have bundles(modules) to do this job with the most advanced secure method. But this tutorial is intended for a beginners who wants to understand an […]

Filed Under: Programming Tagged With: MySql, PHP

How to check if a string contains a specific word in PHP?

Mar 30, 2017 by Editorial Staff Leave a Comment

If we want to check a specific word contains in another string. It’s common this kind of requirement while developing projects in PHP. We can use strpos function which is used to find the occurrence of one string inside other: You notice that I used the check against the false as strpos returns the string […]

Filed Under: Programming Tagged With: PHP

how to check a variable is an array in php

Mar 28, 2017 by Editorial Staff Leave a Comment

When you want to check a variable is an array or not in PHP. Please follow the following snippet.  

Filed Under: Programming Tagged With: PHP

Call to undefined function add_action() in hello.php

Mar 27, 2017 by Editorial Staff Leave a Comment

PHP Fatal error: Call to undefined function add_action() in p-content/plugins/hello.php, I was getting the above error in the error logs. Assuming someone calling this URL directly. To avoid these I’ve added the WordPress good practice line on top of the script.

Filed Under: Programming Tagged With: PHP

Export to CSV in PHP

Mar 27, 2017 by Editorial Staff Leave a Comment

Export to CSV and saving to file, this is the topic I am explaining here. First of all, you will have a database which saved the data sets for you. I am using MySQL for saving the data. Opening the file in write mode and save the database records to CSV by using fwrite.

Filed Under: Programming Tagged With: PHP

Show SOAP web service’s available functions

Mar 26, 2017 by Editorial Staff Leave a Comment

This will be help for other who are working in the web services. Add below code in your client page, can see the available functions  in the service

Filed Under: Programming Tagged With: PHP

TimThumb – PHP Image Resizer

Mar 25, 2017 by Editorial Staff 2 Comments

TimThumb is a simple, flexible, PHP script that resizes images. You give it a bunch of parameters, and it spits out a thumbnail image that you can display on your site. TimThumb has seen a massive amount of use across the WordPress world, and a few months after we released it, I took over development […]

Filed Under: Programming Tagged With: PHP

Primary Sidebar




Quick Links

  • A Simple YouTube Video Downloader Script in PHP
  • The 50 Most Useful jQuery Plugins for Frontend Development
  • Base64 Decode Online
  • Base64 Encode Online

Subscribe

* indicates required

Share

   

Hot topics

  • A Simple YouTube Video Downloader Script in PHP 248 views
  • Replace “\n” with new line characters, using Notepad++ 246 views
  • Add FTP/SFTP in Visual Studio Code 160 views
  • Open a URL in a new tab using JavaScript 136 views
  • Using Third-Party Libraries in Codeigniter 134 views
  • Hierarchical Tree view Category Example in Laravel 129 views
  • Upload Multiple Images and Store in Database using PHP and MySQL. 121 views
  • Laravel Image Intervention Tutorial With Example 110 views
  • How to change PHP version on MAMP – Mac OSX 101 views
  • Spout, an awesome library for reading and writing in Excel. 99 views

Categories

  • Design & Development
  • Drupal
  • Facebook
  • General
  • How To
  • ios
  • Javascript
  • Linux
  • Magento
  • Marketing
  • News
  • PHP
  • Plugins
  • Programming
  • Snippets List
  • Social Media
  • Softwares
  • Themes
  • Tips
  • Wordpress
  • YouTube

Copyright © 2021 · TutsPlanet Gene Theme on Genesis Framework · Powered By BunnyCDN