This note is collected from Lunar astro Facebook group. This is fully for study and research purpose.
Continue reading “Dhatu, Mool and Jeeva in astrology”Author: allaboutbasic
Install and use WordPress using Docker
Step 1:
Install Docker on your Laptop. You can test docker is installed or not by running this following command in your command line and it will show you the Docker version
docker -v

Step 2: Inside your Applications folder create a folder named “dockerwordpress”
mkdir dockerwordpress

How to change wordpress admin password from phpmyadmin using sql
So you need to login to your phpmyAdmin from your hosting and then you need to open the wp_user table ( you may need to change the prefix based on your wordpress table configuration .
Here i have tried to change the password of user “admin” to “abcdef@@”
Continue reading “How to change wordpress admin password from phpmyadmin using sql”Simple Tutorial of Using Ternary Operator to Find Even and Odd Numbers
Here I have tried to show how to use ternary operator to find out a number is even or odd .
Continue reading “Simple Tutorial of Using Ternary Operator to Find Even and Odd Numbers”Displaying All Images from a Folder Using PHP
In this script, I demonstrate how to retrieve and display all JPG and PNG images from a specified folder using PHP. The code uses the glob function to fetch images with specific extensions and then displays the images using HTML.
How to Handle Dynamic Parameters in PHP: Working with Unknown Number of Function Arguments
By using func_get_args(), you can capture and handle any number of parameters passed to a function, making your PHP functions more flexible and versatile.
When to Use array_walk() and array_map() in PHP: Working with Individual Array Elements
array_walk() and array_map() both are used to work with the individual array element. array_walk() allows for operations to be performed on each element, but it does not return a new array. Instead, it operates directly on the original array and is typically used for side effects like printing, modifying elements in-place, or other operations where the result is not needed in a new array.
On the other hand, array_map() Returns a new array with modified values.
Exploring Nested Ternary Operations in PHP
This guide demonstrates how to use braces to properly nest ternary operators in PHP, ensuring correct evaluation and avoiding common errors with practical example.
In Line 7 and 11 you can see how the first braces are used between the ternary operators which makes the output different.
Continue reading “Exploring Nested Ternary Operations in PHP”Understanding Array Differentiation in PHP
Here I will try to show about how to find different elements between arrays using array_diff and array_diff_assoc functions in PHP. This will help you to understand array differentiation based on values and keys.
Continue reading “Understanding Array Differentiation in PHP”Exploring PHP Array Functions: array_intersect and array_intersect_assoc
Today I will try to explore the PHP functions array_intersect and array_intersect_assoc to find common elements in arrays based on values and keys with example.
CODE:
Continue reading “Exploring PHP Array Functions: array_intersect and array_intersect_assoc”