Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Help With Complicated Conditional
Old 04-18-2005, 07:53 PM Help With Complicated Conditional
TCM
TCM's Avatar
Junior Talker

Posts: 2
Trades: 0
Hi. Some code I'm currently writing is making use of a complicated conditional, and it's giving me errors, but I can't figure out why.

Data
PHP Code:
$lines = Array ( [raw] => Array (
[
0] => "11 Chimney Imp"
[1] => "2 Island"
[2] => "2 Canz \'o Spam" 
The Conditional
PHP Code:
if (substr($lines[raw][$j], strlen(intval($lines[raw][$j]),1) == " "
Parse error: parse error, unexpected '{' in <FILE> on line 24 (The next line of code)

If I try to typecast intval to (string), I get an error as well.
Parse error: parse error, unexpected T_STRING in <FILE> on line 23

What am I doing wrong? =?
TCM is offline
Reply With Quote
View Public Profile Visit TCM's homepage!
 
 
Register now for full access!
Old 04-18-2005, 08:02 PM
TCM
TCM's Avatar
Junior Talker

Posts: 2
Trades: 0
Doh. Just missing a closing bracket. My idiot.

EDIT: Wait... I'm not.. am I.

AHURG!

EDIT2: Nevermind, I'll just re-write it differently.

Last edited by TCM; 04-18-2005 at 08:07 PM..
TCM is offline
Reply With Quote
View Public Profile Visit TCM's homepage!
 
Old 04-18-2005, 08:41 PM
brokensoul2271's Avatar
- - - - - - - - -

Posts: 750
Location: Lancashire, UK
Trades: 0
heh heh. The confusion!
__________________
Yes, indeed...

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
brokensoul2271 is offline
Reply With Quote
View Public Profile Visit brokensoul2271's homepage!
 
Reply     « Reply to Help With Complicated Conditional
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19310 seconds with 12 queries