Tanks for all of your responses!
I guess a function is the way to go. I just have to see if the situation
comes up enough times to justify the function approach.
@Dan: I really enjoyed your disclaimer :D
--
Sorin Buturugeanu
www.soin.ro
<http://www.facebook.com/buturugeanu>
Hello all!
I have a question regarding arrays and the way I can use a value.
Let's say I have this string:
$s = 'banana,apple,mellon,grape,nut,orange'
I want to explode it, and get the third value. For this I would normally do:
$a = explode(',', $s);
echo $s[2];
That's all fine, but is there
.
Thanks again to all of you for your support! :)
Sorin
--
Sorin Buturugeanu
http://www.soin.ro
On Wed, Jul 21, 2010 at 9:47 AM, Peter Lind wrote:
> On 21 July 2010 06:46, Sorin Buturugeanu wrote:
>> @Vincent: no, the short tags are not off.
>>
>> @Jim: Thi
@Vincent: no, the short tags are not off.
@Jim: This seamns to work fine:
$template = file_get_contents(pathTemplates.$this->dir.$this->tpl);
ob_start();
$template = eval('?>'.$template);
$template = ob_get_clean();
Thanks!
Best wishes!
Sorin
--
Sorin Buturugeanu
http:/
_once() doesn't fit here (from what I can tell), because it
would still just
include the file in echo the output.
I think there must be a solution, but I'm missing something here ..
Thanks again!
--
Sorin Buturugeanu
http://www.soin.ro
On Wed, Jul 21, 2010 at 12:49 AM, Daevid
Hello,
I am having trouble with a part of my templating script. I'll try to explain:
The template itself is HTML with PHP code inside it, like:
And I have the following code as part of the templating engine:
$template = file_get_contents($file);
$template = "return <<
If in the HTML file (te
6 matches
Mail list logo