The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Php Code Help
I am trying to learn more about php . I posted this code in another part tryin to get input on the hack I was hacking.
Seeing as it is also something I very much want to understand why it does not work I will try in this part. PHP Code:
I am used to visual basics and some of php makes sence just others do not. Thanks in advance. |
#2
|
||||
|
||||
$message has no value (from what you posted) .. you need to assign a value to it.
|
#3
|
||||
|
||||
Assume $message="whatever how are you all today";
The above code should take out the whatever in the beggining. |
#4
|
||||
|
||||
you can use explode();
it works well for what you are trying to do. or try this: PHP Code:
|
#5
|
||||
|
||||
Explode seems to make more functions then needed.
There is not a way just to take out first word in the sentence? |
#6
|
||||
|
||||
Wait n/m I got it thanks to your example.
Thank you for the help. It is hard learning all this when I am used to a dif lang |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|