The PHP Interview Questions have been written specially to get you familiar with the type of questions you may encounter during your interview for the PHP programmer. As per my experience, most of interviewers hardly plan to ask any particular question during your interview, normally questions start with some basic concept of the PHP and […]
Author: PHPZAG Team
Remove an item from comma separated string using PHP
Sometimes we need to remove specific item from comma separated string. Here is a running PHP function to remove an item from a comma-separated string. The function will remove the selected items from the string and return the remaining parts of the string.
Add quotes to values in a string separated by a comma in PHP
Sometimes we need to add quotes to values in a string separated by comma. For example while using MySQL FULLTEXT search, we need to use some kind of string like ‘pasta’,’ tuna’,’ eggs’ OR finding big list of Ids from MySQL such as WHERE item IN (‘pasta’,’ tuna’,’ eggs’). Here in this post, you have […]
Uploading files through FTP using PHP
During developing a web project, we always need FTP Clients(FileZila, WinSCP, SmartFTP etc.) to send or upload files to a server via FTP. However, if you are PHP developer, you can easily create your own FTP script to sending files from one server to another server. The PHP provides ftp_put function to upload a file to […]
Insert content at cursor position in tinyMCE editor
Recently I had a requirement to add text and images at the cursor position in tiny editor. Actually I had to implement multiple images attachment with “add to post” button with each uploaded images and when user clicked the button “add to post”, the image will be get inserted at cursor position in tinyMCE editor.