How To Remove HTML Tags In PHP & MySQL – Simple Example

To remove HTML tags in PHP, we can either use the strip_tags() or htmlentities() function: The strip_tags() function will remove all HTML tags. For example, $clean = strip_tags(“<p>Foo</p> Bar”); will result in Foo Bar. The htmlentities() function will not remove but convert all symbols into HTML entities. For example,  $clean = htmlentities(“<p>Foo</p>”); will result in &lt;p&gt;Foo&lt;/p&gt; Lastly, we can also create a stored function in MySQL to strip HTML … Read more

Material UI CSS

MUI is a lightweight CSS framework that follows Google’s Material Design guidelines his boilerplate HTML to get started using MUI: <!doctype html> <html> <head> <meta charset=”utf-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <!– load MUI –> <link href=”//cdn.muicss.com/mui-0.10.3/css/mui.min.css” rel=”stylesheet” type=”text/css” /> <script src=”//cdn.muicss.com/mui-0.10.3/js/mui.min.js”></script> </head> <body> <!– example content –> <div class=”mui-container”> <div class=”mui-panel”> <h1>My Title</h1> <button … Read more

Bootstrap vs. Material-UI. Which One to Use for the Next Web App?

Material UI is a React UI framework that follows the principles of Material design. It is based on Facebook’s React framework and contains components that are made according to Material guidelines. Material design was developed by Google in 2014 while Material UI was developed by a small, dedicated, and passionate team in 2017. The first beta version of the … Read more

Bootstrap vs Material: Which One is Better?

Bootstrap provides developers with a standard default system for creating easy websites and web applications, while Material offers a wide range of features for creating eye-catching websites with bold colors and engaging animations. Since its launch in August 2011, Bootstrap has become one of the most popular web design systems. Bootstrap provides developers with an … Read more

How to Check if User is Logged In WordPress (PHP Function)

Sometimes you want to add functionality or display something only for logged in users. This is easy using WordPress’ built-in is_user_logged_in() function. This quick tip will show you how to check if a user is logged in WordPress. Here’s an example using the is_user_logged_in() function to display a logout link for logged in users and a login link … Read more

Smarty

Smarty is a template engine for PHP Latest version: 4.1.0 (released on Feb 06, 2022) Added support for PHP 8.1. Smarty version 2.6.20: Smarty.class.php 2722 2007-06-18 14:29:00Z danilo Smarty Crash Course Variable Modifiers Smarty 4 Documentation Smarty 3 Manual Smarty on github Smarty 3 Overview: Rewritten for PHP 5 The Smarty 3 code base is a … Read more

Create Simple RESTful API with PHP & MySQL

In this tutorial you will learn how Create Simple RESTful API with PHP and MySQL. We will implement REST API with CRUD operations to create items, read items, update items and delete items. We will cover this tutorial step by step with live example to create RESTful API to perform CRUD (Create, Read, Update, Delete) operations … Read more

Build a Simple REST API in PHP

REST APIs are the backbone of modern web development. Most web applications these days are developed as single-page applications on the frontend, connected to backend APIs written in various languages.