JIYIK CN >

Current Location:Home > Learning > PROGRAM >

All

Implementing callback functions in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

This article will show you how to create one or more callback functions and execute them using different built-in methods, user-defined functions, and static classes in PHP. Create a function in PHP callback and call_user_func execute it us...

Full

Sending Emails Using the Mail Form in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

This article will demonstrate installing sendmail the library and sending an email through the PHP mail form. Install sendmail to send email from PHP on local server PHP has a built-in function mail() to send emails. However, this function...

Full

Validating Email in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

We will introduce a method to validate email addresses in PHP using filter_var() the function and FILTER_VALIDATE_EMAIL filter name ID. filter_var() The function takes an email as the first parameter and a filter name FILTER_VALIDATE_EMAIL...

Full

Writing error log files in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

When we have a large web application running in production mode, we need to monitor all errors or potential errors that our users may face. The best way to keep an eye on all possible errors is to log them to a file as they occur. This arti...

Full

Validating phone numbers in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

PHP has two ways to validate phone numbers, one is regular expression regex and the other is filter the method. We can use to regex set a template and validate the phone number based on that template, but filter will only exclude the unwant...

Full

Run Shell Scripts and Open Shell Files in PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

Run Shell Scripts and Open Shell Files in PHP

PHP allows us to use shell_exec(); the shell function to process files. However, if your operating system is Windows, you should consider using the popen() and pclose() functions, because pipes are executed in text mode, which usually preve...

Full

Sending attachments in emails using PHP

Publish Date:2025/04/12 Author:JIYIK Category:PHP

We will look at different ways to send attachments via email in PHP. PHPMailer Send attachments in email using We can use PHPMailer the SendEmail class to send emails, allowing us to send attachments. We can create an PHPMailer object of th...

Full

Running PHP on Mac

Publish Date:2025/04/12 Author:JIYIK Category:PHP

In this article, we'll show you how to run PHP on your Mac. php -S Run PHP on Mac using command PHP is a server-side language. It runs on a server. Therefore, it requires a web server to run. There are different web servers like Apache HTTP...

Full

Pandas DataFrame Create New Column Based on Other Columns

Publish Date:2025/04/12 Author:JIYIK Category:Python

DataFrame.apply() This tutorial will show you how we can create new columns in Pandas DataFrame based on the values ​​of other columns in the DataFrame by applying functions to each element of a column or using methods. import pandas as...

Full

Pandas DataFrame Delete a row

Publish Date:2025/04/12 Author:JIYIK Category:Python

This tutorial explains how to pandas.DataFrame.drop() delete rows in Pandas using the method. import pandas as pd kgp_df = pd . DataFrame( { "Name" : [ "Himansh" , "Prateek" , "Abhishek" , "Vidit" , "Anupam" ], "Age" : [ 30 , 33 , 35 , 30 ,...

Full

Get the first row of Dataframe Pandas

Publish Date:2025/04/12 Author:JIYIK Category:Python

This tutorial explains how to use the get_first_row pandas.DataFrame.iloc attribute and pandas.DataFrame.head() get_first_row method from a Pandas DataFrame. We will use the following DataFrame in the following example to explain how to get...

Full

How to Change the Data Type of a Column in Pandas

Publish Date:2025/04/12 Author:JIYIK Category:Python

We will look at methods for changing the data type of columns in a Pandas Dataframe, as well as options like to_numaric , , as_type and infer_objects . We will also discuss how to to_numaric use downcasting the option in . to_numeric Method...

Full

Pandas Convert String to Number

Publish Date:2025/04/12 Author:JIYIK Category:Python

This tutorial explains how to pandas.to_numeric() convert string values ​​of a Pandas DataFrame into numeric type using the method. import pandas as pd items_df = pd . DataFrame( { "Id" : [ 302 , 504 , 708 , 103 , 343 , 565 ], "Name" :...

Full

Pandas fill NaN values

Publish Date:2025/04/12 Author:JIYIK Category:Python

This tutorial explains how we can use DataFrame.fillna() the method to fill NaN values ​​with specified values. We will use the following DataFrame in this article. import numpy as np import pandas as pd roll_no = [ 501 , 502 , 503 , 50...

Full

Grouping and Sorting in Pandas

Publish Date:2025/04/12 Author:JIYIK Category:Python

This tutorial explored the concept of grouping data in a DataFrame and sorting it in Pandas. Grouping and Sorting DataFrame in Pandas As we know, Pandas is an advanced data analysis tool or package extension in Python. Most of the companies...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial