Jump to content

language script


Fluf

Recommended Posts

Hi.

For example I compare two values and if those values match  then script should take another value from array and then echo it.I just need  do know how do skip saying the variable value when they match.Hope someone gets what i need.

It's like script for learning new words in other languages and when he asks me a new words, then i don't want to see those words come around...

Link to comment
Share on other sites

im not sure exactly what you mean.... but i think this is what your trying to do?

[code]
<?php

$name1=array("bob","joe","jack");
$name2=array2("jack","joe","bob");

while (done !=1)
{$num=rand(0,2);
$num1=rand(0,2);

  if (name1[$num] == name2[$num1])
    $num2=name1[$num]+1;
     echo "$name1[$num2]";
?>

 

idk if that helps i dont really understand what your trying to do but i hope that helps? sorry if i messed up some how on it im in a hurry[/code]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.