Terminé

Concatenate

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.

Compétences : PHP

en voir plus : smarty concat, smarty string concatenation, smarty string concat, smarty concat variable, smarty concatenation, smarty concat variables, smarty concat string, concat string smarty, concat, concat smarty, smarty concatenate, smarty concatenate variables, concatenate smarty, string concatenation smarty, php concat variable name, concatenate variables smarty, smarty combine strings, smarty concatenate strings, smarty php concat variable, smarty concatenate variable

Concernant l'employeur :
( 9 commentaires ) san diego, United States

Nº du projet : #223260

Décerné à:

NickolaS

Hi, please, check your PM

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(327 Commentaires)
7.5

4 freelance font une offre moyenne de $30 pour ce travail

php4world

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

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(129 Commentaires)
6.5
wincent

easy job. ready to start.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(79 Commentaires)
6.0
j21

Hello! I ready to start.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(0 Commentaires)
0.0