Jump to content

donatastommy

Members
  • Posts

    15
  • Joined

  • Last visited

donatastommy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. $array1=["joe","bob"]; $array2=["tom","bill"]; $array3=["dan","mary"]; I want to print out every combination.. like (joe,tom,dan),( joe,tom,mary), only picking 1 from each array for each combination. and so on until there are no more combinations. After this i want to post them onto 3 post forms on my website.. I know how to do that but I am stuck on this combination part. Hard to explain.. hope you have understood..
  2. ok thanks foreach($array as $key=>$value) (echo("\x"."$value")) So here is my array Array ( [0] => 41); instead of printing a capital A, it just print \x41.. x41 is the hex representation of A
  3. so i have an rray something like this Array ( [0] => hii [1] => thereee); i want to go through a loop and add a "--" before each of them to print it out, so it would print out --hii--thereee THANK YOU!
  4. Wasn't sure what to search. Thanks.
  5. Sometimes I see things like.. $i="/x80/x80"; Or things like that.. Sometimes with a key $key="/x00"; I have an idea of what it is.. its hex I believe and its can be used to encode/hide information, but can someone elaborate more or give an example of how to do this to something small?
  6. I'll test this when I get home. I believe it should work, however, how would you do this without pow or gdb? Yeah, realized that when I was eating lunch lol
  7. Sorry Can you explain a little more if($x == $sqrt * $sqrt) {echo $x . "</br>";} im only echoing $x if its == $sqrt * $sqrt so thats conditional
  8. My task: You currently have $20000 in your bank account. You are to count the number of perfect squares from 1 to your amount. So first of all, I am trying to print out all the perfect squares (1,4,9,16, etc). That's what I want to do first, and I'm having trouble with it. My code: <?php $x=0; while($x<=20000) { $sqrt = sqrt($x); if($x == $sqrt * $sqrt) {echo $x . "</br>";} $x++; } ?> But all it does is print this, all the way to 1999:
  9. so there would be different tags (about 20) in 3 different categories like size, color, etc [bold][/bold], [red][/red], etc [size=75][/font, etc] now i would want a user to enter a word like "hello" and i would want the string to be inside 1 of each of those categories which are picked randomly for example [bold][red][font=times new roman]hello[/bold][/red][/font]
  10. Sorry I've been away for a while so you mean like a cookie jar?
  11. So you mean like cookies? How would I catch the cookies? They are randomly generated after each logon.
×
×
  • 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.