Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #modulo leitura de xml by victor.
- if (file_exists("./caminho do arquivo")){
- // Carregando configurações XML
- $ler = simplexml_load_file("./caminho/arquivo.xml");
- //buscando tag e pegando o conteúdo <nome>conteudo</nome>
- }
- foreach ($ler->nome AS $nomeobtido){
- $id_nome = $nomeobtido;
- }
- //mostrando o o conteúdo dentro da tag xml ou usando ela pra alguma coisa jaquison kk
- {$id_nome}
- if($id_nome ='conteudo'){
- echo "carai borracha mano";
- }
- else {
- echo "náo é o conteudo";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement