Concatenate

Ολοκληρωμένο Αναρτήθηκε Feb 8, 2008 Πληρώθηκε κατά την παράδοση
Ολοκληρωμένο Πληρώθηκε κατά την παράδοση

System: php 5.2.x and Smarty

Task: concatenate two string variables and build a new variable name.

Example:

The Smarty tpl knows about $text_variable containing "prefix" and $[url removed, login to view] containing "700".

{$text_variable} == "prefix"

{$[url removed, login to view]} == "700"

The Smarty tpl does not know about $prefix700 containing "NOT EMPTY".

The template must test for existing data in $prefix700 but must concatenate two strings to execute the test.

Smarty must build (or call an included php file to build) variable name $prefix700 and test it for data.

i.e.

Concatenate the contents of $text_variable and $[url removed, login to view] into $prefix700

The tpl will then execute the following:

{if $prefix700 ne ""} {$prefix700} {else} EMPTY {/if}

I need Smarty/php code that builds $prefix700 so that the test may be executed from the tpl.

PHP

Ταυτότητα Εργασίας: #223260

Σχετικά με την εργασία

4 προτάσεις Απομακρυσμένη εργασία Ενεργό Feb 8, 2008

Ανατέθηκε στον:

NickolaS

Hi, please, check your PM

$30 USD σε 0 μέρες
(327 Αξιολογήσεις)
7.5

4 freelancers κάνουν προσφορές κατά μέσο όρο $30 για αυτή τη δουλειά

php4world

Hello! I can do it! Please check your PMB.

$30 USD σε 0 μέρες
(129 Αξιολογήσεις)
6.5
wincent

easy job. ready to start.

$30 USD σε 0 μέρες
(79 Αξιολογήσεις)
6.0
j21

Hello! I ready to start.

$30 USD σε 0 μέρες
(0 Αξιολογήσεις)
0.0