Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
function pomosht($num)
{
$id1 = "Bla Bla";
$id2 = "Bla Bla2";
....
return $id.$num;
}
emagi каза:Еми нямаш дефинирано $id, има $id1 и $id2
function pomosht($num)
{
$id1 = "Bla Bla";
$id2 = "Bla Bla2";
....
return $id.$num;
}
tahys каза:emagi каза:Еми нямаш дефинирано $id, има $id1 и $id2
function pomosht($num)
{
$id1 = "Bla Bla";
$id2 = "Bla Bla2";
....
return $id.$num;
}
Връща ми само число не текст ...
<?php
function pomosht($num)
{
$id1 = "Bla Bla";
$id2 = "Bla Bla2";
return $id1.$num;
}
echo pomosht(333); //Bla Bla333
?>
[/quote]<?php
function pomosht($num)
{
$id1 = "Bla Bla";
$id2 = "Bla Bla2";
return $id1.$num;
}
echo pomosht(333); //Bla Bla333
?>
emagi каза:Функцията си работи, виж дали това, което "вадиш" от БД е число!Дай едно echo, и пак провери!
echo pomosht(1);
Bla Bla
function pomosht($num)
{
$id1 = "Bla Bla";
$id2 = "sdfsdf";
return $id.$num;
}