User Profile

Collapse

Profile Sidebar

Collapse
nhbach
nhbach
Last Activity: Mar 22 '18, 12:32 PM
Joined: Dec 9 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • nhbach
    started a topic Parsing JSON with PHP
    in PHP

    Parsing JSON with PHP

    Hi all,
    I have a JSON generated from API, but when I try to save, it shows that txt file. https://eutils.ncbi.nlm.nih.gov/entr...ed-univ.edu.vn

    I write a short code to get the abstract in this link.
    Code:
    $api_json_url2 = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=3321921&tool=my_tool&email=nhbach@huemed-univ.edu.vn";
    ...
    See more | Go to post

  • You're great! Thank you so much, i can resolve my probleme!
    See more | Go to post

    Leave a comment:


  • nhbach
    started a topic wordwrap, chunk_split or something else can help me?
    in PHP

    wordwrap, chunk_split or something else can help me?

    Hi all,
    How to break line of long string including inside html code?

    Example
    I have a long string of letters AAAAAAAACCCCCCC CC and they was formated with html code.
    Code:
    <font color=magenta>AAAAAAAAA</font><font color=red>CCCCCCCCCC</font>
    How to break line each 4 letters (still keep the color of these letters). I was used wordwrap, chunk_split but failed. Please help me, thanks!
    See more | Go to post

  • Okay, This is my probleme:
    We have a long string (example 120 characters)
    $str1="ACATGACA TGACATGACATGACA TGACATGACATGACA TGACATGACATGACA TGACATGACATGACA TGACATGACATGACA TGACATGACATGACA TGACATGACATGACA TGACATG"

    First: I split the string every 5 bases:
    $str2="ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG ACATG"...
    See more | Go to post

    Leave a comment:


  • How to numbered line when using wordwrap to break line in long string?

    Re: How to separate a long string to short string with space each 5 character in php?
    Thank Domilich in advanced.
    And, if i want to numbered the character in string when I use wordwap to break line this string, what I can do?

    Example:
    $str1 = "GCCGGCGGCCAGGG CGAGCGCTTGCTGGC "
    $str2 = "GCCGG CGGCC AGGGC GAGCC TTGCT GGC" (i can do that now, thanks Domilich)

    And now:
    1 GCCGG...
    See more | Go to post
    Last edited by Dormilich; Dec 10 '09, 07:13 AM. Reason: corrected my name

  • Thank you in advanced.
    And, if i want to numbered the character in string when I use wordwap to break line this string, what I can do?

    Example:
    $str1 = "GCCGGCGGCCAGGG CGAGCGCTTGCTGGC "
    $str2 = "GCCGG CGGCC AGGGC GAGCC TTGCT GGC" (i can do that now, thanks)

    And:
    1 GCCGG CGGCC
    11 AGGGC GAGCC
    21 TTGCT GGC

    Please help me! Thanks
    See more | Go to post

    Leave a comment:


  • How to separate a long string to short string with space each 5 character in php?

    I have a long string in db

    $code = "ACTGTCTACTGGTC TAGCTAGTCATGCTA GTAATCG"
    How to separate a long string to short string with space each 5 character?
    Example:

    ACTGT CTACT GGTCT AGCTA GTCAT GCTAG TAATC
    Please help me, i am a biology student! Thanks!
    See more | Go to post
No activity results to display
Show More
Working...