https://www.youtube.com/watch?v=MQoXH9yNUyo&ab_channel=PROTOTURK
FIND_IN_SET ile yapabilirsin.
foreach($xml->product as $product){
$i = 0;
foreach($product->resimler as $resim){
$i++;
}
echo $i;
}
bunu dene
SELECT `user`.*, `chat`.* FROM `user` INNER JOIN `chat` ON `user`.`id` = `chat`.`gonderen_id` ORDER BY `chat`.`chat_tarih` DESC
$context = stream_context_create(array('ssl' => array('header' => 'Accept: application/xml')));
$url = 'https://kosekayalar-1.dia.com.tr/b2c_xml?key=6ixVFCSWNOO2HnU9Ljct';
$xml = file_get_contents($url, false, $context);
$xml = simplexml_load_string($xml);
foreach($xml->product as $product){
$stok_kodu = $product->stok_kodu;
$title = $product->title;
$description = $product->description;
$keywords = $product->keywords;
$stok_miktari = $product->stok_miktari;
echo "Stok Kodu: $stok_kodu<br>Title: $title<br>Description: $description<br>Keywords: $keywords<br>Stok Miktarı: $stok_miktari";
}
override ile yapmana gerek yok bence bu şekilde çözebilirsin meseleyi
public function test($deger){
if(is_int($deger)){
echo "int geldi";
} else if(is_string($deger)){
echo "string geldi";
} else if(is_float($deger)){
echo "float";
}
}
Sitedeki player bu.
Bende site kaynağından buldum bunu kullanmıyorum.
Sağtık yapıp incele dersen orada .js dosyasını görürsün.
https://www.php.net/manual/tr/class.domdocument.php
https://www.yusufsezer.com.tr/php-xml/ burada anlatımı var.
header("Content-Type: application/xml;");
$database = array('Veri1', 'Veri2', 'Veri3');
$xml = new DOMDocument('1.0', 'UTF-8');
$veriler = $xml->createElement('veriler');
foreach($database as $d){
$veri = $xml->createElement('veri', $d);
$veriler->appendChild($veri);
}
$xml->appendChild($veriler);
$xml->save('veriler.xml');
echo $xml->saveHTML();
/*** Output :
<veriler>
<veri>Veri1</veri>
<veri>Veri2</veri>
<veri>Veri3</veri>
</veriler>
*/
https://gist.github.com/psdtohtml5/5646810
https://gist.github.com/vanita5/6293f77a5d9be686210b -> Bunu düzenlersen işine yarar gibi.validate() fonksiyonu içerisinde session kontrolü yaptırırsın.
https://codecanyon.net/item/customerfriendly-download-login/411480 -> Bunun ücretsizini bulamadım.
olayı yanlış anlamışım yukarıdaki pdf i ekrana yazdırmak için.
https://github.com/spipu/html2pdf