1

(5 replies, posted in PHPForums.org)

Hi!

Yep, I was thinking that it would be great to see the name of topic instead of just date. I'm currently looking into extension development for this forum software.

Nice to see your great ideas and keep them coming!

2

(5 replies, posted in Chit Chat)

Hi!

I'm from Latvia. It's a small country in the Northern Europe.

Hi there!

In this tutorial I'll write some basic PHP code on how to find if a number is odd or even.

The idea behind the code is that even numbers have zero reminder when divided by 2, while odd numbers have 1 as a reminder after division by 2. For this I'll use PHP modulus operator (%).

<?php
if ($number % 2 == 0)
{
    echo "even";
}
else
{
    echo "odd";
}
?>

Hello!

Here is some basic tutorial on how to generate a random number in PHP.

Random numbers in PHP are generated using the rand() function. Let's write some code that will generate a random number between 1 and 10.

<?php
echo rand(1, 10);
?>

If you need more than one random number generated, use rand() function in a loop. Here is a code for generating three random numbers between 10 and 20.

<?php
for ($i = 0; $i < 3; $i++)
{
    echo rand(10, 20) . " ";
}
?>

5

(4 replies, posted in Code)

Here is some basic PHP code,

<?php
    if ($firstVariable == $secondVariable)
    {
        echo "same";
    }
    else
    {
        echo "different";
    }
?>

6

(3 replies, posted in PHPForums.org)

Hi John,

Yes, I agree that the forums should have some unique design, but just because of uniqueness of our community. I really like this default theme the forums have mainly because of its simplicity and quality. I'm thinking on something custom based on it already...

As for these seconds between posts, I went through all the forum settings and couldn't find anything related to this. I'll look into the forum database and see if there is something changeable.

Thanks for advice.

7

(3 replies, posted in PHPForums.org)

Thanks! I like the name as well. smile It's great to have such a knowledgeable members. Let's help each other and expand our knowledge of PHP.

8

(7 replies, posted in Introductions)

Welcome to the forums! Nice to see you here.

9

(12 replies, posted in General)

What editor you are using to do your PHP work? Feel free to let us know your opinion about it.

Personally, I do my PHP development work with the help of Aptana and Notepad++. I love the speed of Notepad++ and the feature set of Aptana. Both are great and feature full PHP editors, which satisfy my needs to the fullest.


How about you?

10

(3 replies, posted in PHPForums.org)

Welcome here!

On October 1 we successfully launched help forums dedicated to everyone dealing with PHP.

I hope you will find these forums helpful!


Regards,
Einherjar

11

(3 replies, posted in Introductions)

Welcome on board! Let's enjoy the learning together.

12

(5 replies, posted in Chit Chat)

Hi there!

Do you have a pet, and if so, what is it and what is its name?

Personally, I have a cat and a dog. Dog's name is Max, but the cat's Greta. Max is so black that is barely visible when walking with him in the dark. big_smile Greta is a crazy cat girl turning all the rooms upside down. She also likes to be on the front of the camera, I've attached a photo of her.