![]() |
A lil help w/ Substrings
Well.. heres whats up:
makevar("test." @ tokens[0]) = "hi"; tokens[0] contains of test.a=B so I would need it to look like this: makevar("test.a") = "B"; (test.a = B) Normally I could just substirng it, but the tokens could always change. How can I detect where the = is and get the content before and after the sign? Thanks. :) |
temp.a = "temp.b = 3";
echo( temp.a.substring( 0 , temp.a.pos("=") ) ); ? Might that what you be searching for? |
Quote:
|
Quote:
(pos() is a function also ;o) |
All times are GMT +2. The time now is 03:54 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.