Custom Pipe Example In Angular.
PHPFOREVER
by rajesh
2M ago
Custom Pipe Example In Angular. This tutorial will show you how to create an Angular Custom Pipe. It is handy if we want to reuse some logic across our applications. It allows us to change the format in which data is displayed on the pages. For instance, consider the date of birth as 01-01-2024 and we want to display it as 01-January-2023. To achieve this we will make one pipe that can be used anywhere in our application. In angular Types of Pipe.  Pure Pipe.  Impure pipes. Pure Pipe. The pure pipe is a pipe called when a pure change is detected in the value. It is called fewer tim ..read more
Visit website
How to Style Even and Odd Div.
PHPFOREVER
by rajesh
2M ago
We can easily change the background color of div’s even and odd index using the:nth-child pseudo-class with the even and odd keywords, respectively. Odd and even are keywords that can be used to match child elements whose index is odd or even (the index of the first child is 1). Here, we specify two different background colors for odd and even p elements. Example: <!DOCTYPE html> <html> <head> <title>Even Odd Example</title> <style type="text/css"> div :nth-child(even){ background-color: yellow; } div :nth-child(odd){ bac ..read more
Visit website
Angular Code Review Checklist.
PHPFOREVER
by rajesh
5M ago
Introduction: Code review is a process where developers have their work reviewed by their peers to check the code’s quality and functionality. In the case of Angular, there are specific points that we must check to ensure code effectiveness, which we will be discussing in detail in our upcoming blog post. Effective code reviews are crucial to delivering high-quality applications to end-users. This process involves a peer review of developers’ work. The main aim of this evaluation is to detect any bugs, syntax issues, and other factors that could impact the application’s performance. However, c ..read more
Visit website
Create PDF in PHP Using FPDF.
PHPFOREVER
by rajesh
10M ago
In this post, I  will explain how to create a pdf file in php. To create a PDF file in PHP we will use the FPDF library. It is a PHP library that is used to generate a PDF. FPDF is an open-source library. It is the best server-side PDF generation PHP library. It has rich features right from adding a PDF page to creating grids and more. Example: <?Php require('fpdf/fpdf.php'); $pdf = new FPDF(); $pdf->AddPage(); $pdf->SetFont('Arial','B',16); $pdf->Cell(80,10,'Hello World From FPDF!'); $pdf->Output('test.pdf','I'); // Send to browser and display ?> Output:   &nbs ..read more
Visit website
Ajax Live Search Example In PHP & MYSQL.
PHPFOREVER
by rajesh
1y ago
Ajax Live Search Example In PHP & MYSQL. In this post, we will create a simple live search example in PHP & MySQL using Ajax. With the help of this tutorial, we can implement a live search feature in web applications using PHP & MySQL. This feature is useful when we have a large amount of data for some field and we don’t want to display the whole data at a time. In this case when the user types some characters then we can show data based on the typed character for better performance. It will improve the performance of our web application. This functionality can be implemented in PH ..read more
Visit website
Angular Dropdown With Search And Multi Select.
PHPFOREVER
by rajesh
1y ago
In this post, we will learn to select dropdown with search and multi-select features. i=It’s a simple example of a dropdown with search and multi-select using ngselect. This article will implement an angular ngselect box with search and multi select. What is Angular ng-select? It is a Lightweight all in one UI Select, Multiselect, and Autocomplete library in Angular. It provides many features such as custom search, multi-select, custom tags, append to, etc. These are the features of ngselect. Features Of NgSelect   Custom binding to property or object Custom option, label, header, and fo ..read more
Visit website
Curl Example In PHP.
PHPFOREVER
by rajesh
1y ago
What is cURL? The cURL stands for “CLIENT URL”. It is a library that allows clients to access the data from the Remote Server by an HTTP request in PHP. We can easily communicate with different websites and domains with the help of cURL in PHP.  How To Enable cURL In PHP. To use the cURL in PHP it should be enabled. You can check it by using phpinfo(). If it is not enabled open the php.ini file and search for php_curl.dll and uncomment it by removing the semicolon(;) in front of it.   <?php phpinfo(); ?> Some Basic cURL Function In PHP. S.No. Function Name Description ..read more
Visit website
Quiz App In Angular.
PHPFOREVER
by rajesh
1y ago
This tutorial is about how to create a basic quiz app in Angular. This is a fundamental example of understanding the angular concept. Quiz application in one form or the other is becoming a general requirement for most applications these days. About: A list of questions will be displayed, each with four answer choices. There will be only one option is correct. You can move the next and the previous question through the button. Once you will reach to last question finish button will come and you have to finish the quiz to see your score. Here the question is in JSON format. Below are the steps ..read more
Visit website
Server Side Form Validation in PHP.
PHPFOREVER
by rajesh
1y ago
Validation may be a quite common task in web applications. Entered data should be Validated before sending it to the server. This post deals with server-side form validation in PHP. After reading this post we’ll be ready to validate the form with PHP. The server-side form validation is more secure than the client-side form validation. Client-side validation depends on whether the JavaScript is disabled or enabled on the client system. If JavaScript is disabled then client-side form validation will not work. However server-side for validation done on server-side after the data has been submitte ..read more
Visit website
Convert XML to JSON In PHP.
PHPFOREVER
by rajesh
2y ago
In this post, we will learn how to convert XML to JSON. We can convert XML to JSON by using PHP inbuilt function. These functions are simplexml_load_file and json_encode.  What is simplexml_load_file? This function converts an XML file into an object. It accepts the absolute path of an XML file as a parameter, converts it into an object of the SimpleXMLElement class, and returns it. What is json_encode? It returns the JSON representation of a value. It is used to convert an array or object into JSON representation. Let us see the below example to convert XML to JSON. Create an XML like th ..read more
Visit website

Follow PHPFOREVER on FeedSpot

Continue with Google
Continue with Apple
OR